removed redundant os.chdir, thanks paolo

This commit is contained in:
mdipierro
2019-04-11 21:16:54 -07:00
parent 066d9c9ab5
commit 33335ec3e1

View File

@@ -941,8 +941,6 @@ def start_schedulers(options):
[(app.strip(), None) for app in options.scheduler.split(',')]
code = "from gluon.globals import current;current._scheduler.loop()"
logging.getLogger().setLevel(options.debuglevel)
if options.folder:
os.chdir(options.folder)
if len(apps) == 1 and not options.with_scheduler:
app_, code = get_code_for_scheduler(apps[0], options)
if not app_:
@@ -1049,8 +1047,6 @@ def start(cron=True):
if options.shell:
# run interactive shell and exit
if options.folder:
os.chdir(options.folder)
sys.argv = [options.run] + options.args
run(options.shell, plain=options.plain, bpython=options.bpython,
import_models=options.import_models, startfile=options.run,