projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add TOOLCHAIN in the tags
[bertos.git]
/
wizard
/
BFolderPage.py
diff --git
a/wizard/BFolderPage.py
b/wizard/BFolderPage.py
index 4e1174457fd71bc7a95d26521068a5ce872625c9..187557db00b1bbe318f73276ac29ee2ff9a40d97 100644
(file)
--- a/
wizard/BFolderPage.py
+++ b/
wizard/BFolderPage.py
@@
-95,6
+95,11
@@
class BFolderPage(BWizardPage):
stored_folder = self.defaultFolder()
if stored_folder != "":
self._destination_folder = stored_folder
stored_folder = self.defaultFolder()
if stored_folder != "":
self._destination_folder = stored_folder
+ elif os.name == "nt":
+ from win32com.shell import shell, shellcon
+ self._destination_folder = shell.SHGetFolderPath(0, shellcon.CSIDL_PERSONAL, 0, 0)
+ del shell
+ del shellcon
else:
self._destination_folder = os.path.expanduser("~")
self.pageContent.directoryEdit.setText(self._destination_folder)
else:
self._destination_folder = os.path.expanduser("~")
self.pageContent.directoryEdit.setText(self._destination_folder)