Skip to content
Snippets Groups Projects
Commit 6b9b4c91 authored by Oz Linden's avatar Oz Linden
Browse files

Detect running under cygwin and fail gracefully

parent 1abc8713
No related branches found
No related tags found
No related merge requests found
......@@ -68,11 +68,13 @@ elif sys.platform == 'linux2':
CheckDirs = [ os.path.expanduser('~/.secondlife'),
]
elif sys.platform == 'win32' or sys.platform == 'cygwin':
CheckDirs = [ os.path.expanduser('~\\Local Settings\\Temp'),
os.path.expanduser('~\\Application\\Data\\Secondlife'),
os.path.expanduser('~\\AppData\\Roaming\\Secondlife'),
os.path.expanduser('~\\AppData\\Local\\Secondlife'),
]
if os.path.isdir(os.path.expanduser('~\\AppData\\Roaming')):
CheckDirs = [ os.path.expanduser('~\\Application\\Data\\Secondlife'),
os.path.expanduser('~\\AppData\\Roaming\\Secondlife'),
os.path.expanduser('~\\AppData\\Local\\Secondlife'),
]
else:
sys.exit("No AppData\\Roaming directory found;\nThis script must be run in a native Windows command shell.\nRunning under cygwin does not work.")
else:
sys.exit("unrecognized platform '%s'" % sys.platform)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment