/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Lib/fileutil.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Lib/fileutil.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1151 by frank, Wed Jun 11 10:45:18 2003 UTC revision 1152 by frank, Wed Jun 11 11:06:27 2003 UTC
# Line 173  def get_application_dir(): Line 173  def get_application_dir():
173                  key = wreg.OpenKey(wreg.HKEY_CURRENT_USER,                  key = wreg.OpenKey(wreg.HKEY_CURRENT_USER,
174                    "Software\\Microsoft\\Windows\\CurrentVersion\\"\                    "Software\\Microsoft\\Windows\\CurrentVersion\\"\
175                    "Explorer\\Shell Folders")                    "Explorer\\Shell Folders")
176                    dir = wreg.QueryValueEx(key, "AppData")[0]
177                    dir = os.path.join(dir, "thuban")
178              except:              except:
179                  regkey = 0                  regkey = 0
180    
181          if regkey:          if not regkey:
             dir = wreg.QueryValueEx(key, "AppData")  
         else:  
182              # The fallback. This should result in something like the              # The fallback. This should result in something like the
183              # user directory ...              # user directory ...
184              guess = os.path.dirname(              guess = os.path.dirname(

Legend:
Removed from v.1151  
changed lines
  Added in v.1152

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26