Show More
@@ -198,11 +198,12 b' def get_home_dir(require_writable=False) -> str:' | |||
|
198 | 198 | # expanduser failed, use the registry to get the 'My Documents' folder. |
|
199 | 199 | try: |
|
200 | 200 | import winreg as wreg |
|
201 |
|
|
|
201 | key = wreg.OpenKey( | |
|
202 | 202 | wreg.HKEY_CURRENT_USER, |
|
203 | 203 | r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" |
|
204 |
) |
|
|
205 |
|
|
|
204 | ) | |
|
205 | homedir = wreg.QueryValueEx(key,'Personal')[0] | |
|
206 | key.Close() | |
|
206 | 207 | except: |
|
207 | 208 | pass |
|
208 | 209 |
General Comments 0
You need to be logged in to leave comments.
Login now