![]() |
How do you "change" paths?
My webhost is using Python 2.4
Suppose I have the following directories: Code:
public_html/subdomain_1/main.pyHow do I make it so that in main.py, all imports are treated as if it was in directory public_html/subdomain_2? |
Quote:
Code:
import sys |
Well, I did not think that was the function because it had that word "append" in it.
Does it work as such: sys.path.append('../subdomain_2')? |
Quote:
Good luck and best regards |
| All times are GMT +1. The time now is 03:34 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.