pythonize

This commit is contained in:
Андрей Владимирович 2016-02-16 23:03:37 +03:00
parent 65c1872444
commit 72cca0b327

View file

@ -1,4 +1,4 @@
import platform from platform import system
import json import json
import os import os
@ -21,9 +21,8 @@ class Settings(object):
@staticmethod @staticmethod
def get_default_path(): def get_default_path():
name = platform.system() if system() == 'Linux':
if name == 'Linux':
return os.getenv('HOME') + '/.config/tox/' return os.getenv('HOME') + '/.config/tox/'
elif name == 'Windows': elif system() == 'Windows':
return os.getenv('APPDATA') + '/Tox/' return os.getenv('APPDATA') + '/Tox/'