diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 02:00:28 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 03:22:29 +0200 |
commit | 0349b81a10d2937897f30031c4dedb49aa132d8c (patch) | |
tree | 3db2827cd64888cc013e064d4e201b8a6ddbc7a9 /pyload/config/Setup.py | |
parent | Merge pull request #12 from GammaC0de/GammaC0de-fix-api (diff) | |
download | pyload-0349b81a10d2937897f30031c4dedb49aa132d8c.tar.xz |
'from os' -> 'import os' and so on...
Diffstat (limited to 'pyload/config/Setup.py')
-rw-r--r-- | pyload/config/Setup.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pyload/config/Setup.py b/pyload/config/Setup.py index 2143632c2..7e3fbffec 100644 --- a/pyload/config/Setup.py +++ b/pyload/config/Setup.py @@ -4,12 +4,10 @@ from __future__ import with_statement import __builtin__ - import os import sys from getpass import getpass -from os import chdir, makedirs, path from subprocess import PIPE, call from pyload.network.JsEngine import JsEngine @@ -424,14 +422,14 @@ class SetupAssistant(object): dirname = path.abspath(configdir) try: if not path.exists(dirname): - makedirs(dirname, 0700) + os.makedirs(dirname, 0700) - chdir(dirname) + os.chdir(dirname) if persistent: c = path.join(rootdir, "config", "configdir") if not path.exists(c): - makedirs(c, 0700) + os.makedirs(c, 0700) with open(c, "wb") as f: f.write(dirname) |