Python import search path

2011-08-20 Thread Kevin Zhang
Hi, This is the directory tree. project └── sme ├── src │ ├── a.pth │ ├── sss.py └── test └── ttt.py I need to import sss.py in ttt.py. Found a few solution in python docs. A. sys.path.append B. add ***.pth file C. edit .../site-packages/site.py I found out that

Re: Python import search path

2011-08-20 Thread Chris Angelico
On Sat, Aug 20, 2011 at 10:52 AM, Kevin Zhang kevin.misc...@gmail.com wrote: Found a few solution in python docs. A. sys.path.append I think A is not so pretty, and I don't have root  privilege to use B and C. So any both more elegant and practical solutions? If, as I understand from your

Python import search path!

2007-12-14 Thread SMALLp
Hy! I'm new in Linux, and i feel little less newer in python. I need advice and help. I'm making an application witch purpose is irrelevant. It has a lot of code for now and I've only made interface. So I've tried to split code into separate files and in windows as I remember worked file when

Re: Python import search path!

2007-12-14 Thread kyosohma
On Dec 14, 3:44 pm, SMALLp [EMAIL PROTECTED] wrote: Hy! I'm new in Linux, and i feel little less newer in python. I need advice and help. I'm making an application witch purpose is irrelevant. It has a lot of code for now and I've only made interface. So I've tried to split code into

Re: Python import search path!

2007-12-14 Thread SMALLp
[EMAIL PROTECTED] wrote: On Dec 14, 3:44 pm, SMALLp [EMAIL PROTECTED] wrote: Hy! I'm new in Linux, and i feel little less newer in python. I need advice and help. I'm making an application witch purpose is irrelevant. It has a lot of code for now and I've only made interface. So I've tried

Re: Python import search path!

2007-12-14 Thread Bjoern Schliessmann
SMALLp wrote: remember worked file when i wrote eg. import myFile but now in Ubuntu it says Module not found. (I'm using Ubuntu and I've installed python 2.5 and wxPython 2.8.4, and I'm using GedIt as my favorite text editor). The question is how to make this work (files are in the same