I've written a python program that does some maintenance stuff on the computer. It's really a stand alone program but I'd like it to be run at the beginning of every time I start TurboGears. I figured I'd import it once, and it would run once upon startup of my TurboGears app.
Since most of my editing is done in controllers.py, I put it there. It runs twice! Then I put it towards the beginning of start-myproject.py. And then I tried the end. It always runs twice. When called as part of a program I wrote (such as the test program below) it's only called once. #!/usr/bin/python2.4 import mymodule print "hi" Where can I import my module so it only gets called once? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

