Browse Source

get user directory for windows

master
David Beltra 2 years ago
parent
commit
5f96ae12b6
2 changed files with 7 additions and 3 deletions
  1. +3
    -1
      platform_Windows.py
  2. +4
    -2
      unix.py

+ 3
- 1
platform_Windows.py View File

@ -13,4 +13,6 @@ path_end = regstring.find('\"', path_start+1)
path = regstring[path_start+1:path_end]
uninstall_path = os.path.split(path)[0]
thunderbird_base = os.path.dirname(uninstall_path)
thunderbird_base = os.path.dirname(uninstall_path)
per_user_directory = os.path.join(os.environ['LOCALAPPDATA'], '.pEp')

+ 4
- 2
unix.py View File

@ -15,5 +15,7 @@ def gpg_executable(thunderbird_base):
else:
return gpg
per_user_directory = environ['HOME'] + '/.pEp'
try:
per_user_directory = environ['HOME'] + '/.pEp'
except:
pass

Loading…
Cancel
Save