summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-viewer-xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/check-viewer-xml b/scripts/check-viewer-xml
index 27c1112492..85366c02ae 100755
--- a/scripts/check-viewer-xml
+++ b/scripts/check-viewer-xml
@@ -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)