diff options
author | rahulp13 | 2022-02-22 01:07:20 +0530 |
---|---|---|
committer | rahulp13 | 2022-02-22 01:07:20 +0530 |
commit | 1b42df112e9d13afd092d9f415e7e446a2102e85 (patch) | |
tree | 10caef51545fbbf7ee8ab43f02bc1a2650090c30 /src/maker/Appconfig.py | |
parent | faadcb72916d269aeabbaa23f799962b6b99c45c (diff) | |
download | eSim-1b42df112e9d13afd092d9f415e7e446a2102e85.tar.gz eSim-1b42df112e9d13afd092d9f415e7e446a2102e85.tar.bz2 eSim-1b42df112e9d13afd092d9f415e7e446a2102e85.zip |
Restructured config paths and other path issues
Diffstat (limited to 'src/maker/Appconfig.py')
-rwxr-xr-x | src/maker/Appconfig.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/maker/Appconfig.py b/src/maker/Appconfig.py index 45d28e62..06758898 100755 --- a/src/maker/Appconfig.py +++ b/src/maker/Appconfig.py @@ -3,7 +3,11 @@ from configparser import ConfigParser class Appconfig: - home = os.path.expanduser("~") + if os.name == 'nt': + home = os.path.join('library', 'config') + else: + home = os.path.expanduser('~') + # Reading all variables from eSim config.ini parser_esim = ConfigParser() parser_esim.read(os.path.join(home, os.path.join('.esim', 'config.ini'))) |