default profile bug fix. install.md fix

This commit is contained in:
ingvar1995 2017-07-12 21:36:19 +03:00
parent 1e1772e306
commit 2ff41313f8
2 changed files with 7 additions and 4 deletions

View file

@ -57,7 +57,10 @@ class Settings(dict, Singleton):
data = fl.read()
auto = json.loads(data)
if 'path' in auto and 'name' in auto:
return str(auto['path']), str(auto['name'])
path = str(auto['path'])
name = str(auto['name'])
if os.path.isfile(append_slash(path) + name + '.tox'):
return path, name
return '', ''
@staticmethod