Create non existent directories before loading the rest of PChum
pyquirks was trying to create a subdirectory of a directory that didn't exist :D
This commit is contained in:
parent
7e7c8b843f
commit
9987420911
1 changed files with 24 additions and 19 deletions
|
@ -42,26 +42,11 @@ if not ((major > 4) or (major == 4 and minor >= 6)):
|
||||||
print "You currently have version " + vnum + ". Please ungrade Qt"
|
print "You currently have version " + vnum + ". Please ungrade Qt"
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
from menus import PesterChooseQuirks, PesterChooseTheme, \
|
# Placed here before importing the rest of pesterchum, since bits of it need
|
||||||
PesterChooseProfile, PesterOptions, PesterUserlist, PesterMemoList, \
|
# OSX's data directory and it doesn't hurt to have everything set up before
|
||||||
LoadingScreen, AboutPesterchum, UpdatePesterchum
|
# plowing on. :o)
|
||||||
from dataobjs import PesterProfile, Mood, pesterQuirk, pesterQuirks
|
# ~Lex
|
||||||
from generic import PesterIcon, RightClickList, RightClickTree, MultiTextDialog, PesterList, CaseInsensitiveDict
|
|
||||||
from convo import PesterTabWindow, PesterText, PesterInput, PesterConvo
|
|
||||||
from parsetools import convertTags, addTimeInitial, themeChecker, ThemeException
|
|
||||||
from memos import PesterMemo, MemoTabWindow, TimeTracker
|
|
||||||
from irc import PesterIRC
|
|
||||||
from logviewer import PesterLogUserSelect, PesterLogViewer
|
|
||||||
from bugreport import BugReporter
|
|
||||||
from randomer import RandomHandler
|
|
||||||
from updatecheck import MSPAChecker
|
|
||||||
|
|
||||||
_datadir = os.path.join(str(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", \
|
|
||||||
"caligulasAquarium", "cuttlefishCuller", "carcinoGeneticist", "centaursTesticle", \
|
|
||||||
"grimAuxiliatrix", "gallowsCalibrator", "gardenGnostic", "ectoBiologist", \
|
|
||||||
"twinArmageddons", "terminallyCapricious", "turntechGodhead", "tentacleTherapist"]
|
|
||||||
|
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
if not os.path.exists(_datadir):
|
if not os.path.exists(_datadir):
|
||||||
os.mkdir(_datadir)
|
os.mkdir(_datadir)
|
||||||
|
@ -81,6 +66,26 @@ else:
|
||||||
f.write("{}")
|
f.write("{}")
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
from menus import PesterChooseQuirks, PesterChooseTheme, \
|
||||||
|
PesterChooseProfile, PesterOptions, PesterUserlist, PesterMemoList, \
|
||||||
|
LoadingScreen, AboutPesterchum, UpdatePesterchum
|
||||||
|
from dataobjs import PesterProfile, Mood, pesterQuirk, pesterQuirks
|
||||||
|
from generic import PesterIcon, RightClickList, RightClickTree, MultiTextDialog, PesterList, CaseInsensitiveDict
|
||||||
|
from convo import PesterTabWindow, PesterText, PesterInput, PesterConvo
|
||||||
|
from parsetools import convertTags, addTimeInitial, themeChecker, ThemeException
|
||||||
|
from memos import PesterMemo, MemoTabWindow, TimeTracker
|
||||||
|
from irc import PesterIRC
|
||||||
|
from logviewer import PesterLogUserSelect, PesterLogViewer
|
||||||
|
from bugreport import BugReporter
|
||||||
|
from randomer import RandomHandler
|
||||||
|
from updatecheck import MSPAChecker
|
||||||
|
|
||||||
|
canon_handles = ["apocalypseArisen", "arsenicCatnip", "arachnidsGrip", "adiosToreador", \
|
||||||
|
"caligulasAquarium", "cuttlefishCuller", "carcinoGeneticist", "centaursTesticle", \
|
||||||
|
"grimAuxiliatrix", "gallowsCalibrator", "gardenGnostic", "ectoBiologist", \
|
||||||
|
"twinArmageddons", "terminallyCapricious", "turntechGodhead", "tentacleTherapist"]
|
||||||
|
|
||||||
|
|
||||||
class waitingMessageHolder(object):
|
class waitingMessageHolder(object):
|
||||||
def __init__(self, mainwindow, **msgfuncs):
|
def __init__(self, mainwindow, **msgfuncs):
|
||||||
self.mainwindow = mainwindow
|
self.mainwindow = mainwindow
|
||||||
|
|
Loading…
Reference in a new issue