pythonize

This commit is contained in:
Андрей Владимирович 2016-02-16 23:03:37 +03:00
parent 65c1872444
commit 72cca0b327
1 changed files with 3 additions and 4 deletions

View File

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