mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 21:22:39 +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)
|
||||
else:
|
||||
done = True
|
||||
return (dir, orig_dir)
|
||||
return (dir, os.path.dirname(orig_dir))
|
||||
|
||||
def getRegistryValue(setting, prompt='', showHelp=True, showType=True):
|
||||
if not prompt:
|
||||
@ -236,7 +236,6 @@ def main():
|
||||
except KeyError:
|
||||
(logDir, basedir) = getDirectoryName('logs')
|
||||
conf.supybot.directories.log.setValue(logDir)
|
||||
basedir = os.path.dirname(basedir)
|
||||
|
||||
# conf.supybot.directories.data
|
||||
output("""Your bot will need to put various data somewhere. Things like
|
||||
|
Loading…
Reference in New Issue
Block a user