I don't understand to much. To be OS independent, use op.path functions like join, basename or dirname. If you need relative path inside your app, use builtin variable __file__ .
like in datafilename='mydata.txt' datadirname='data' datafullpath=os.path.join(os.path.dirname(__file__), datadirname, datafilename) Hope this help On 2 juin, 07:42, SamDonaldson <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to understand how turbogears is structured and how I could > get the full package path etc so that I don't have to hardcode this > stuff in. I'd like to make this OS independent. Also, stuff like > full path to my top level package directory, web server root etc.. > Where and what are the calls to get this info. > > Thanks > > Sam. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

