304 Public method to save the dialog's raw data. |
304 Public method to save the dialog's raw data. |
305 |
305 |
306 @return flag indicating success |
306 @return flag indicating success |
307 @rtype bool |
307 @rtype bool |
308 """ |
308 """ |
309 baseDir = (Preferences.getMultiProject("Workspace") or |
309 baseDir = ( |
310 os.path.expanduser("~")) |
310 Preferences.getMicroPython("MpyWorkspace") or |
|
311 Preferences.getMultiProject("Workspace") or |
|
312 os.path.expanduser("~") |
|
313 ) |
311 dataDir = os.path.join(baseDir, "data_capture") |
314 dataDir = os.path.join(baseDir, "data_capture") |
312 |
315 |
313 if not os.path.exists(dataDir): |
316 if not os.path.exists(dataDir): |
314 os.makedirs(dataDir) |
317 os.makedirs(dataDir) |
315 |
318 |