Hi:

I have a scenario where I'm calling a Python program from a TG page.  
This program is using ReportLab to generate a PDF and I didn't want to 
clutter up my Controller will all of this code.  Also, I call this 
report program entirely outside of TG on a scheduled basis.  This report 
needs a couple of images that it includes in the PDF and I have them 
stored in the TG static/images directory.  My question is how can I find 
the top level directory of my TG app when I'm running this program.

How do others handle this type of situation?  Should I have the program 
stored outside of my TG hierarchy altogether?  Should I just hard-code 
the path to the images?  I'm looking for some direction here in the 
proper Pythonic way of doing this.  FWIW, the path to my TG app top 
level directory is different on my development and production machines.

Any input would be appreciated.

    -Jim


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to