예제 #1
0
 def update_default_dir(self, path):
     default_dir = path if os.path.isdir(path) else os.path.dirname(path)
     SETTINGS.set('default directory', default_dir)
예제 #2
0
 def __init__(self, exclude_directory=None):
     self.cache = {}
     self.python_path_cache = {}
     exclude_directory = exclude_directory or SETTINGS.get(self._IGNORE_RESOURCE_DIRECTORY_SETTING_NAME, None)
     self._exclude_directory = exclude_directory and self._with_separator(self._normalize(exclude_directory))