Thanks, Ryan!
That's what my command looks like now:
def command(self):
# initialize turbogears environment
if not self.options.config:
self.options.config = os.path.join(os.path.dirname(mysite.__file__),
"..", "development.ini")
config = appconfig("config:" + self.options.config)
load_environment(config.global_conf, config.local_conf)
# execute command ...
--
Best wishes,
Mihail Lukin
--
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.