mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Move creation of userdata.conf to scripts/supybot just to ensure that we're
not trying to create it before the directories exist.
This commit is contained in:
parent
18138da1c0
commit
61d6e029b1
@ -343,6 +343,14 @@ if __name__ == '__main__':
|
||||
if not os.path.exists(conf.supybot.directories.data()):
|
||||
os.mkdir(conf.supybot.directories.data())
|
||||
|
||||
userdataFilename = os.path.join(supybot.directories.conf(),'userdata.conf')
|
||||
# Let's open this now since we've got our directories setup.
|
||||
if not os.path.exists(userdataFilename):
|
||||
fd = file(userdataFilename, 'w')
|
||||
fd.write('\n')
|
||||
fd.close()
|
||||
registry.open(userdataFilename)
|
||||
|
||||
import irclib
|
||||
import ircmsgs
|
||||
import drivers
|
||||
@ -415,5 +423,4 @@ if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
@ -596,13 +596,4 @@ registerGlobalValue(supybot.debug, 'flushVeryOften',
|
||||
flush all flushers *very* often. Useful for debugging when you don't know
|
||||
what's breaking or when, but think that it might be logged."""))
|
||||
|
||||
# Let's open this now since we've got our directories setup.
|
||||
userdataFilename = os.path.join(supybot.directories.conf(), 'userdata.conf')
|
||||
if not os.path.exists(userdataFilename):
|
||||
fd = file(userdataFilename, 'w')
|
||||
fd.write('\n')
|
||||
fd.close()
|
||||
registry.open(userdataFilename)
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
Loading…
Reference in New Issue
Block a user