Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45501 > unrolled thread

Re: how to run another file inside current file?

Started by"fjctlzy@gmail.com" <fjctlzy@gmail.com>
First post2013-05-18 18:32 +0800
Last post2013-05-18 18:32 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: how to run another file inside current file? "fjctlzy@gmail.com" <fjctlzy@gmail.com> - 2013-05-18 18:32 +0800

#45501 — Re: how to run another file inside current file?

From"fjctlzy@gmail.com" <fjctlzy@gmail.com>
Date2013-05-18 18:32 +0800
SubjectRe: how to run another file inside current file?
Message-ID<mailman.1797.1368873192.3114.python-list@python.org>
subprocess?



发自我的小米手机

Avnesh Shakya <avnesh.nitk@gmail.com>编写:

>hi,
>   I want to run a another file inside a ached.add_cron_job(..). how is it possible, please help me, I have a file otherFile.py for execution inside current file.
>I know it is very easy question but i m unable to get anything, please help me.
>example --
>
>import otherFile
>from apscheduler.scheduler import Scheduler
>sched = Scheduler()
>sched.start()
>
>def job_function():
>    # Can I here add that file for execution, Or can i add that file directly inside cron?
>   
>sched.add_cron_job(job_function, month='1-12', day='1-31', hour='0-23',minute='44-49')
>-- 
>http://mail.python.org/mailman/listinfo/python-list

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web