diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-16 16:52:58 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-16 16:52:58 +0100 |
commit | 94f897ed651718f31633670927c8ee57d766ee43 (patch) | |
tree | 778528c4456aa7fc464130435c75dfee39f8fbdc /module | |
parent | thrift ssl connection fix (closes #242) (diff) | |
download | pyload-94f897ed651718f31633670927c8ee57d766ee43.tar.xz |
win fix
Diffstat (limited to 'module')
-rw-r--r-- | module/Utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/Utils.py b/module/Utils.py index 5f36c2d77..b023a981d 100644 --- a/module/Utils.py +++ b/module/Utils.py @@ -48,7 +48,7 @@ def formatSize(size): return "%.2f %s" % (size, sizes[steps]) def freeSpace(folder): - if sys.platform == 'nt': + if os.name == "nt": import ctypes free_bytes = ctypes.c_ulonglong(0) ctypes.windll.kernel32.GetDiskFreeSpaceExW(ctypes.c_wchar_p(folder), None, None, ctypes.pointer(free_bytes)) |