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 <mdipie...@cs.depaul.edu> 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 <miss.from.h...@gmail.com> 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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---