Added proper wandows support
This commit is contained in:
1 parent
3344f8ab80
commit
aa03438280
4 files changed
+23
-11
No files matched your search
+3
-2
@@ -1,9 +1,10 @@
|
||||
import files as f
|
||||
import json
|
||||
import os
|
||||
|
||||
def readConf():
|
||||
def readConf(fileLoc):
|
||||
try:
|
||||
jsonData = json.loads(f.openFile("config.json").read())
|
||||
jsonData = json.loads(f.openFile(os.path.expanduser(fileLoc)).read())
|
||||
except Exception as e:
|
||||
print e
|
||||
jasonData = ""
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user