Add support of --folder paramter for cron.
Before this changes crontab from directories (except native applications) was ignored
This commit is contained in:
+5
-3
@@ -225,8 +225,8 @@ class web2pyDialog(object):
|
||||
text=str(ProgramVersion + "\n" + ProgramAuthor),
|
||||
font=('Helvetica', 11), justify=Tkinter.CENTER,
|
||||
foreground='#195866', background=bg_color,
|
||||
height=3).pack( side='top',
|
||||
fill='both',
|
||||
height=3).pack( side='top',
|
||||
fill='both',
|
||||
expand='yes')
|
||||
|
||||
self.bannerarea.after(1000, self.update_canvas)
|
||||
@@ -246,7 +246,7 @@ class web2pyDialog(object):
|
||||
[('0.0.0.0', 'Public')]
|
||||
for ip, legend in ips:
|
||||
self.ips[ip] = Tkinter.Radiobutton(
|
||||
self.root, bg=bg_color, highlightthickness=0,
|
||||
self.root, bg=bg_color, highlightthickness=0,
|
||||
selectcolor='light grey', width=30,
|
||||
anchor=Tkinter.W, text='%s (%s)' % (legend, ip),
|
||||
justify=Tkinter.LEFT,
|
||||
@@ -1119,6 +1119,8 @@ def start(cron=True):
|
||||
|
||||
# ## if -S start interactive shell (also no cron)
|
||||
if options.shell:
|
||||
if options.folder:
|
||||
os.chdir(options.folder)
|
||||
if not options.args is None:
|
||||
sys.argv[:] = options.args
|
||||
run(options.shell, plain=options.plain, bpython=options.bpython,
|
||||
|
||||
Reference in New Issue
Block a user