Bug fix: Handle Mac datadir shit better
This commit is contained in:
parent
4a2fe110f2
commit
54bce62857
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,7 @@ from bugreport import BugReporter
|
||||||
from randomer import RandomHandler
|
from randomer import RandomHandler
|
||||||
from updatecheck import MSPAChecker
|
from updatecheck import MSPAChecker
|
||||||
|
|
||||||
_datadir = QtGui.QDesktopServices.storageLocation(QtGui.QDesktopServices.DataLocation)+"Pesterchum/"
|
_datadir = os.path.join(str(QtGui.QDesktopServices.storageLocation(QtGui.QDesktopServices.DataLocation)),"Pesterchum/")
|
||||||
canon_handles = ["apocalypseArisen", "arsenicCatnip", "arachnidsGrip", "adiosToreador", \
|
canon_handles = ["apocalypseArisen", "arsenicCatnip", "arachnidsGrip", "adiosToreador", \
|
||||||
"caligulasAquarium", "cuttlefishCuller", "carcinoGeneticist", "centaursTesticle", \
|
"caligulasAquarium", "cuttlefishCuller", "carcinoGeneticist", "centaursTesticle", \
|
||||||
"grimAuxiliatrix", "gallowsCalibrator", "gardenGnostic", "ectoBiologist", \
|
"grimAuxiliatrix", "gallowsCalibrator", "gardenGnostic", "ectoBiologist", \
|
||||||
|
@ -69,6 +69,7 @@ if sys.platform == "darwin":
|
||||||
os.mkdir(_datadir+"profiles")
|
os.mkdir(_datadir+"profiles")
|
||||||
if not os.path.exists(_datadir+"pesterchum.js"):
|
if not os.path.exists(_datadir+"pesterchum.js"):
|
||||||
f = open(_datadir+"pesterchum.js", 'w')
|
f = open(_datadir+"pesterchum.js", 'w')
|
||||||
|
f.write("{}")
|
||||||
f.close()
|
f.close()
|
||||||
else:
|
else:
|
||||||
if not os.path.exists("logs"):
|
if not os.path.exists("logs"):
|
||||||
|
|
Loading…
Reference in a new issue