def load_available_definitions(self): d = os_support.get_bkchem_private_dir() d = os.path.join(d, 'definitions') if not os.path.isdir(d): return [] for name in os.listdir(d): base, ext = os.path.splitext(name) if ext == ".xml": self.read_data_definition(os.path.join(d, name)) return self.definitions.keys()
def load_available_definitions(self): dir = os_support.get_bkchem_private_dir() dir = os.path.join(dir, 'definitions') if not os.path.isdir(dir): return [] for name in os.listdir(dir): base, ext = os.path.splitext(name) if ext == ".xml": #try: self.read_data_definition(os.path.join(dir, name)) #except: # Store.log( "could not load definition file: %s", message_type="error") return self.definitions.keys()
def load_available_definitions( self): dir = os_support.get_bkchem_private_dir() dir = os.path.join( dir, 'definitions') if not os.path.isdir( dir): return [] for name in os.listdir( dir): base, ext = os.path.splitext( name) if ext == ".xml": #try: self.read_data_definition( os.path.join( dir, name)) #except: # Store.log( "could not load definition file: %s", message_type="error") return self.definitions.keys()
def get_available_plugins( self): dir2 = os_support.get_dirs( 'plugin') dir1 = os_support.get_bkchem_private_dir() dir1 = os.path.join( dir1, 'plugins') dirs = dir2 + [dir1] for dir in dirs: if not os.path.isdir( dir): continue for name in os.listdir( dir): base, ext = os.path.splitext( name) if ext == ".xml": #try: self.read_plugin_file( dir, name) #except: # debug.log( "could not load plugin file", name) return self.plugins.keys()