When it runs as windows service it shows, well, not python, I was wrong, it shows the path to that utility that is used to run as service... I think if request.env.web2py_path always gives realpath to web2py directory that would be enough.
On Jun 9, 10:44 am, mdipierro <[email protected]> wrote: > I am not convinced. why should it find applications and not find its > own path? > anyway, where do you think it should go? > > massimo > > On Jun 9, 1:04 am, SergeyPo <[email protected]> wrote: > > > > > There are problems with these in Windows when web2py is run as > > service. They show path to python. > > After many trials I came to this ugly solution: > > > import applications.advantage.modules.pathfinder as pathfinder > > PATH_TO_ME = os.path.dirname( os.path.realpath( pathfinder.__file__ )) > > > Here 'pathfinder' is any module, even empty one. > > > On Jun 8, 4:41 pm, mdipierro <[email protected]> wrote: > > > > request.folder is the path to your app > > > request.env.web2py_path is the path to web2py > > > > On Jun 8, 3:08 am, mika <[email protected]> wrote: > > > > > I would like to get the main web2py path, so I could just for example > > > > add 'applications/my_app/generated_files/1.txt' to make the complete > > > > path for file that will be created. Are there some environmetal paths > > > > or something like this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

