mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
Specify a default directory and don't prompt when we create the plugins directory.
This commit is contained in:
parent
27d835e1f6
commit
d0fadee9f6
@ -263,7 +263,7 @@ def main():
|
||||
conf.supybot.directories.plugins.setValue(pluginDirs)
|
||||
else:
|
||||
output("""Your bot needs to create some directories in order to store
|
||||
the various log, config, and data files.""")
|
||||
the various log, config, and data files.""", default=os.curdir)
|
||||
basedir = something("""Where would you like to create these
|
||||
directories?""")
|
||||
# conf.supybot.directories.log
|
||||
@ -283,7 +283,8 @@ def main():
|
||||
conf.supybot.directories.backup.setValue(backupDir)
|
||||
# pluginDirs
|
||||
pluginDirs = conf.supybot.directories.plugins()
|
||||
(pluginDir, _) = getDirectoryName('plugins', basedir=basedir)
|
||||
(pluginDir, _) = getDirectoryName('plugins',
|
||||
basedir=basedir, prompt=False)
|
||||
if pluginDir not in pluginDirs:
|
||||
pluginDirs.append(pluginDir)
|
||||
conf.supybot.directories.plugins.setValue(pluginDirs)
|
||||
|
Loading…
Reference in New Issue
Block a user