Skip to content

Commit

Permalink
fixed bug in windows config support
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatWheatleySaid committed Jul 12, 2019
1 parent 88f25ac commit 8d6aa4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MVPtoolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,10 @@ def check_config(self):
'''check if config exists, makes default config if not'''
if self.is_Windows:
file = os.getenv('APPDATA')
file = Path(file + r"\MVPtoolkit\config.ini")
file = file + r"\MVPtoolkit\config.ini"
print(file)
config = configparser.ConfigParser()
if file.isfile():
if os.path.exists(file):
print(r'config found, reading from ~APPDATA~\config.ini')
config.read(file)
self.custom_color = config['appearance']['custom_color']
Expand Down

0 comments on commit 8d6aa4c

Please sign in to comment.