15 lines
291 B
Python
15 lines
291 B
Python
|
import os
|
||
|
import sys
|
||
|
|
||
|
LINUX = "linux"
|
||
|
WINDOWS = "win"
|
||
|
SYS_PLATFORM = None
|
||
|
if sys.platform.startswith("linux"):
|
||
|
SYS_PLATFORM = LINUX
|
||
|
elif sys.platform.startswith("win32"):
|
||
|
SYS_PLATFORM = WINDOWS
|
||
|
|
||
|
GLOBAL_DIR = os.path.join(sys.path[0])
|
||
|
UNIX_GLOBAL_DIR = GLOBAL_DIR.replace("\\", "/")
|
||
|
|