summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.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/Application.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/Application.py')
-rwxr-xr-xsrc/frontEnd/Application.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index ba971006..b852a941 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -926,9 +926,12 @@ def main(args):
appView.obj_workspace.returnWhetherClickedOrNot(appView)
try:
- file = open(os.path.join(
- os.path.expanduser("~"), ".esim/workspace.txt"), 'r'
- )
+ 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"), 'r')
work = int(file.read(1))
file.close()
except IOError: