From 72cca0b327b7e1de1fd831dd09218be9fe17fc14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=92=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Tue, 16 Feb 2016 23:03:37 +0300 Subject: [PATCH] pythonize --- src/settings.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/settings.py b/src/settings.py index 0658c4b..11ff106 100644 --- a/src/settings.py +++ b/src/settings.py @@ -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/'