Relative path.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Relative path.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Relative path.  
Alberto Ruiz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-04-05 01:45 AM

I have noticed, that the handlers, execute the scripts with '/' as the
current working directory, so it is difficult to include files, like
templates, using the relative path. I'm using the __file__ constant to
discover the path. There is another constant in the library that gives
me the cwd?
I think that execute the script on the directory where it is located, is
a much better aproach. There is any reason for not doing it?


Thanks,
Alberto Ruiz








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:49 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register