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