pythonize
This commit is contained in:
parent
65c1872444
commit
72cca0b327
1 changed files with 3 additions and 4 deletions
|
@ -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/'
|
||||
|
||||
|
|
Loading…
Reference in a new issue