def find_module_source_file(self, mod_name): from utils import get_module_file, module_in_file from oc_utils import Config # OC addition if self.source_only: for sf in self.source_only: if module_in_file(mod_name, sf): return sf else: fn = None #for d in self.include_dirs: # OC deletion for d in self.include_dirs + Config.include['path']: # OC addition fn = get_module_file(mod_name, d) if fn is not None: return fn # start of OC addition for sf in Config.include['file'].keys(): if module_in_file(mod_name, sf): if sf is not None: return sf
def find_module_source_file(self, mod_name): from utils import get_module_file, module_in_file from oc_utils import Config # OC addition if self.source_only: for sf in self.source_only: if module_in_file(mod_name, sf): return sf else: fn = None #for d in self.include_dirs: # OC deletion for d in self.include_dirs+Config.include['path']: # OC addition fn = get_module_file(mod_name, d) if fn is not None: return fn # start of OC addition for sf in Config.include['file'].keys(): if module_in_file(mod_name, sf): if sf is not None: return sf
def find_module_source_file(self, mod_name): from utils import get_module_file, module_in_file if self.source_only: for sf in self.source_only: if module_in_file(mod_name, sf): return sf else: fn = None for d in self.include_dirs: fn = get_module_file(mod_name, d) if fn is not None: return fn