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