Free Motion Capture for Everyone πβ¨
TypeScript
dataPath GUI remembers the last data path set
aaroncherian58f42c012cd0
diff --git a/freemocap/fmc_startup/startup.py b/freemocap/fmc_startup/startup.pyindex e383f832..bcfc9314 100644--- a/freemocap/fmc_startup/startup.py+++ b/freemocap/fmc_startup/startup.py@@ -48,6 +48,8 @@ def get_data_folder_path(session):# 3) If no sessionID was user-input, search the chosen directory for the last session createdif session.setDataPath == True:session.basePath = startupGUI.RunChooseDataPathGUI(session)+ session.preferences['saved']['path_to_save'] = str(session.basePath)+ session.save_user_preferences(session.preferences)#sesh.dataFolderPath = Path(basePath)/sesh.dataFolderNameelif session.userDataPath is not None:diff --git a/freemocap/fmc_startup/startupGUI.py b/freemocap/fmc_startup/startupGUI.pyindex cd8dd968..1b17a728 100644--- a/freemocap/fmc_startup/startupGUI.py+++ b/freemocap/fmc_startup/startupGUI.py@@ -13,7 +13,7 @@ class setDataPathGUI:chooseLabel = Label(master, text=chooseText)chooseLabel.pack(side="top")- self.currentPath = Path.cwd() #JSM NOTE - Why is this referencing `current working directory?` shouldn't it show what the current data path is set to?+ self.currentPath = session.preferences['saved']['path_to_save']text = 'Current file path: ' + str(self.currentPath)self.currentPathText = tk.StringVar()self.currentPathText.set(text)