mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Nesting directories is bad, mkay.
This commit is contained in:
parent
245c77d69b
commit
975f69894b
@ -133,7 +133,7 @@ def getDirectoryName(default, basedir=os.curdir):
|
|||||||
have to pick someplace else.""" % e)
|
have to pick someplace else.""" % e)
|
||||||
else:
|
else:
|
||||||
done = True
|
done = True
|
||||||
return (dir, orig_dir)
|
return (dir, os.path.dirname(orig_dir))
|
||||||
|
|
||||||
def getRegistryValue(setting, prompt='', showHelp=True, showType=True):
|
def getRegistryValue(setting, prompt='', showHelp=True, showType=True):
|
||||||
if not prompt:
|
if not prompt:
|
||||||
@ -236,7 +236,6 @@ def main():
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
(logDir, basedir) = getDirectoryName('logs')
|
(logDir, basedir) = getDirectoryName('logs')
|
||||||
conf.supybot.directories.log.setValue(logDir)
|
conf.supybot.directories.log.setValue(logDir)
|
||||||
basedir = os.path.dirname(basedir)
|
|
||||||
|
|
||||||
# conf.supybot.directories.data
|
# conf.supybot.directories.data
|
||||||
output("""Your bot will need to put various data somewhere. Things like
|
output("""Your bot will need to put various data somewhere. Things like
|
||||||
|
Loading…
Reference in New Issue
Block a user