def get_uuid(self):
     from utils import md5string
     if 'debug_package' in self._config and self._config[
             'debug_package'] != '':
         return md5string(self._config['debug_package'])
     else:
         return md5string(self._config['package'])
예제 #2
0
def get_cache_dir():
    cache_dir_path = os.path.join(os.path.expanduser('~'), '.freeline',
                                  'cache',
                                  md5string(os.getcwd().decode("utf-8")))
    if not os.path.exists(cache_dir_path):
        os.makedirs(cache_dir_path)
    return cache_dir_path
예제 #3
0
 def get_uuid(self):
     from utils import md5string
     if 'debug_package' in self._config and self._config['debug_package'] != '':
         return md5string(self._config['debug_package'])
     else:
         return md5string(self._config['package'])
예제 #4
0
def get_cache_dir():
    cache_dir_path = os.path.join(os.path.expanduser('~'), '.freeline', 'cache', md5string(os.getcwd()))
    if not os.path.exists(cache_dir_path):
        os.makedirs(cache_dir_path)
    return cache_dir_path