Move disableMultiprocessing from supybot.conf to supybot.world in order for it not to be in the config file.

This commit is contained in:
Valentin Lorentz 2014-08-14 14:16:15 +02:00
parent 41d63c7888
commit bd1ac36c2c
3 changed files with 3 additions and 3 deletions

View File

@ -314,7 +314,7 @@ if __name__ == '__main__':
sys.exit(-1)
conf.allowDefaultOwner = options.allowDefaultOwner
conf.disableMultiprocessing = options.disableMultiprocessing
world.disableMultiprocessing = options.disableMultiprocessing
if not os.path.exists(conf.supybot.directories.log()):
os.mkdir(conf.supybot.directories.log())

View File

@ -152,7 +152,7 @@ if __name__ == '__main__':
help='Disables multiprocessing stuff.')
(options, args) = parser.parse_args()
conf.disableMultiprocessing = options.disableMultiprocessing
world.disableMultiprocessing = options.disableMultiprocessing
# This must go before checking for args, of course.
for pluginDir in options.pluginsDirs:

View File

@ -86,7 +86,7 @@ def process(f, *args, **kwargs):
if resource and heap_size is None:
heap_size = resource.RLIM_INFINITY
if conf.disableMultiprocessing:
if world.disableMultiprocessing:
pn = kwargs.pop('pn', 'Unknown')
cn = kwargs.pop('cn', 'unknown')
try: