Re: [web2py] Re: application path in modules

2013-09-03 Thread Jonathan Lundell
On 3 Sep 2013, at 12:13 PM, Niphlod wrote: > BTW, AFAICT (As Far As I Can Tell :P), the abspath was only meant to have > easier code in admin. Docstring says > "convert relative path to absolute path based (by default) on > applications_parent" > > applications_parent is the folder where the ap

Re: [web2py] Re: application path in modules

2013-09-03 Thread Niphlod
BTW, AFAICT (As Far As I Can Tell :P), the abspath was only meant to have easier code in admin. Docstring says "convert relative path to absolute path based (by default) on applications_parent" application*s*_parent is the folder where the *applications/* folder is (where web2py.py usually is),

Re: [web2py] Re: application path in modules

2013-09-03 Thread Jonathan Lundell
On 3 Sep 2013, at 11:10 AM, Niphlod wrote: > uhm. apart from the technicalities of global_settings, shouldn't be better to > just import current and use current.request.folder as the base folder ? Yeah, that ought to work. I wasn't thinking along those lines, I guess. Originally, I was doing m

[web2py] Re: application path in modules

2013-09-03 Thread Niphlod
uhm. apart from the technicalities of global_settings, shouldn't be better to just import current and use current.request.folder as the base folder ? On Tuesday, September 3, 2013 7:36:58 PM UTC+2, Jonathan Lundell wrote: > > I have a module in my app's modules/ directory that needs a path to a f