Compiled .py in other directory

View: New views
2 Messages — Rating Filter:   Alert me  

Compiled .py in other directory

by Christian-Peter Weiss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

With the cheetah compile command i can put the *.py files in another
directory, but I have not found an explanation, how to tell the
Template-Engine in the Python Code, how to find them in the other
directory, so how cann I do that?

Reegards
Christian

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

Re: Compiled .py in other directory

by Bugzilla from jbq@caraldi.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/7/19 Christian-Peter Weiss <amiganer@...>:
> Hello!
>
> With the cheetah compile command i can put the *.py files in another
> directory, but I have not found an explanation, how to tell the
> Template-Engine in the Python Code, how to find them in the other
> directory, so how cann I do that?

Set environment variable PYTHONPATH when starting your application or
append your custom directory path to sys.path at runtime.
--
Jean-Baptiste Quenot
http://jbq.caraldi.com/

------------------------------------------------------------------------------
_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss