pythonize
This commit is contained in:
parent
65c1872444
commit
72cca0b327
@ -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/'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user