Пример #1
0
 def _import_resource(self, path):
     return UserLibrary(self._find_resource_file(path))
Пример #2
0
 def _import_resource(self, path):
     ast = ResourceFileBuilder(process_curdir=False).build(
         self._find_resource_file(path))
     return UserLibrary(ast)
Пример #3
0
 def _import_resource(self, path):
     populators.PROCESS_CURDIR = False
     try:
         return UserLibrary(self._find_resource_file(path))
     finally:
         populators.PROCESS_CURDIR = True
Пример #4
0
 def _import(self, path, arguments):
     if arguments:
         raise DataError("Resource file cannot take arguments.")
     return UserLibrary(self._find_resource_file(path))
Пример #5
0
 def _import(self, path, arguments):
     return UserLibrary(self._find_resource_file(path))