61 |
61 |
62 self.__forceUpload = forceUpload |
62 self.__forceUpload = forceUpload |
63 |
63 |
64 self.__remoteFilesFound = [] |
64 self.__remoteFilesFound = [] |
65 |
65 |
66 # check the existence of the shared directory; create it, if it is |
66 # check the existence of the shared directory; create it, if it is |
67 # not there |
67 # not there |
68 if not os.path.exists(Preferences.getHelp("SyncDirectoryPath")): |
68 if not os.path.exists(Preferences.getHelp("SyncDirectoryPath")): |
69 try: |
69 try: |
70 os.makedirs(Preferences.getHelp("SyncDirectoryPath")) |
70 os.makedirs(Preferences.getHelp("SyncDirectoryPath")) |
71 except OSError as err: |
71 except OSError as err: |
177 QCoreApplication.processEvents() |
177 QCoreApplication.processEvents() |
178 # Bookmarks |
178 # Bookmarks |
179 if Preferences.getHelp("SyncBookmarks"): |
179 if Preferences.getHelp("SyncBookmarks"): |
180 self.__initialSyncFile( |
180 self.__initialSyncFile( |
181 "bookmarks", |
181 "bookmarks", |
182 Helpviewer.HelpWindow.HelpWindow.bookmarksManager()\ |
182 Helpviewer.HelpWindow.HelpWindow.bookmarksManager() |
183 .getFileName()) |
183 .getFileName()) |
184 |
184 |
185 QCoreApplication.processEvents() |
185 QCoreApplication.processEvents() |
186 # History |
186 # History |
187 if Preferences.getHelp("SyncHistory"): |
187 if Preferences.getHelp("SyncHistory"): |
188 self.__initialSyncFile( |
188 self.__initialSyncFile( |
189 "history", |
189 "history", |
190 Helpviewer.HelpWindow.HelpWindow.historyManager()\ |
190 Helpviewer.HelpWindow.HelpWindow.historyManager() |
191 .getFileName()) |
191 .getFileName()) |
192 |
192 |
193 QCoreApplication.processEvents() |
193 QCoreApplication.processEvents() |
194 # Passwords |
194 # Passwords |
195 if Preferences.getHelp("SyncPasswords"): |
195 if Preferences.getHelp("SyncPasswords"): |