running a script based on a tg app and loading the enviroment (see previous 
question) using:
   conf = appconfig('config:' +os.path.abspath(config_file)) #where the 
config is config.ini
load_environment(conf.global_conf, conf.local_conf)
and then on to my script hard work (loading data into a db)

my problem is that loading this way also triggers the cron job.
since the cron (tg.scheduler) is using:
    if "shell" in sys.argv:  # won't run in paster shell mode only in serve
        return
it doesn't run when I run paster shell. but does run when I'm running my 
script
can I load tg enviroment without all the startup cron? or pass some 
sys.argv from the script to disable?

thanks!
 
running tg 2.1.3

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to