summaryrefslogtreecommitdiff
path: root/src/frontEnd/Workspace.py
diff options
context:
space:
mode:
authorrahulp132022-02-22 01:07:20 +0530
committerrahulp132022-02-22 01:07:20 +0530
commit1b42df112e9d13afd092d9f415e7e446a2102e85 (patch)
tree10caef51545fbbf7ee8ab43f02bc1a2650090c30 /src/frontEnd/Workspace.py
parentfaadcb72916d269aeabbaa23f799962b6b99c45c (diff)
downloadeSim-1b42df112e9d13afd092d9f415e7e446a2102e85.tar.gz
eSim-1b42df112e9d13afd092d9f415e7e446a2102e85.tar.bz2
eSim-1b42df112e9d13afd092d9f415e7e446a2102e85.zip
Restructured config paths and other path issues
Diffstat (limited to 'src/frontEnd/Workspace.py')
-rwxr-xr-xsrc/frontEnd/Workspace.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/frontEnd/Workspace.py b/src/frontEnd/Workspace.py
index 4d033539..fca73e39 100755
--- a/src/frontEnd/Workspace.py
+++ b/src/frontEnd/Workspace.py
@@ -124,9 +124,13 @@ class Workspace(QtWidgets.QWidget):
self.obj_appconfig.workspace_check = self.chkbox.checkState()
print(self.workspace_loc.text())
- file = open(os.path.join(
- os.path.expanduser("~"), ".esim/workspace.txt"), 'w'
- )
+
+ if os.name == 'nt':
+ user_home = os.path.join('library', 'config')
+ else:
+ user_home = os.path.expanduser('~')
+
+ file = open(os.path.join(user_home, ".esim/workspace.txt"), 'w')
file.writelines(
str(self.obj_appconfig.workspace_check) +
" " + self.workspace_loc.text()