Fix Path
This commit is contained in:
parent
f9205fdc55
commit
e428292861
@ -34,7 +34,7 @@ class Config(object):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
def read(self, type):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
path = os.getcwd()
|
||||
path = os.path.dirname(os.path.abspath(__file__))
|
||||
data = None
|
||||
if(type == "settings"):
|
||||
print("Reading 'settings.json'")
|
||||
@ -69,7 +69,7 @@ class Config(object):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
def writeConfig(self, type, data):
|
||||
##-----------------------------------------------------------------------------------##
|
||||
path = os.getcwd()
|
||||
path = os.path.dirname(os.path.abspath(__file__))
|
||||
print(path)
|
||||
if(type == "settings"):
|
||||
print("Writing 'settings.json'")
|
||||
|
Reference in New Issue
Block a user