On Aug 9, 2009, at 9:45 AM, Jonathan Lundell wrote:

> On Aug 9, 2009, at 1:49 AM, Bottiger wrote:
>
>>
>> Massimo, it is in the path because above there is the following line:
>>
>> sys.path.append('applications/%s/modules' % request.application)
>>
>> And it does work if you first request a page from "provider" before
>> using the "cas" application, so its definately a timing issue rather
>> than a path/import issue.
>
> Use an absolute path, maybe? Can the cwd change?
>
> And test sys.path to make sure it's not there. Still not 100% thread-

On the subject of the cwd, it might be useful in Chapter 2 of the  
manual, perhaps under the os module section, to document a) what the  
cwd is in the web2py context, and b) where the developer should get it  
from, if it's needed (os.getcwd & os.path.abspath, I suppose?).

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to