Re: Setting PYTHONPATH does not allow importing module

2015-03-04 Thread cl
fa...@vt.edu wrote: > I have the following directory /home/me/projects/modulename. > > I update PYTHONPATH using the following command: > export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename > > It seems to have been added: > [me@machine ~]$ python -c "import sys; print(sys.path)" > ['',...

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread Zachary Ware
On Tue, Mar 3, 2015 at 9:47 PM, wrote: > On Tuesday, March 3, 2015 at 10:43:27 PM UTC-5, Zachary Ware wrote: >> Try adding /home/me/projects to PYTHONPATH instead of >> /home/me/projects/modulename. > > Ah, that worked! Yes, I see that the modulename must be visible. Thanks a lot! No problem, gl

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread faruk
On Tuesday, March 3, 2015 at 10:43:27 PM UTC-5, Zachary Ware wrote: > On Tue, Mar 3, 2015 at 9:25 PM, wrote: > > I have the following directory /home/me/projects/modulename. > > > > I update PYTHONPATH using the following command: > > export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename > >

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread faruk
On Tuesday, March 3, 2015 at 10:37:54 PM UTC-5, liuerfire Wang wrote: > Is there a file named __init__.py in the modulename dir? > > > > > > > > > Best regards > > > > > > On Wed, Mar 4, 2015 at 11:25 AM, wrote: > I have the following directory /home/me/projects/modulename. > > >

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread faruk
On Tuesday, March 3, 2015 at 10:37:54 PM UTC-5, liuerfire Wang wrote: > Is there a file named __init__.py in the modulename dir? > > > > > > > > > Best regards > > > > > > On Wed, Mar 4, 2015 at 11:25 AM, wrote: > I have the following directory /home/me/projects/modulename. > > >

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread Zachary Ware
On Tue, Mar 3, 2015 at 9:25 PM, wrote: > I have the following directory /home/me/projects/modulename. > > I update PYTHONPATH using the following command: > export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename > > It seems to have been added: > [me@machine ~]$ python -c "import sys; print(s

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread liuerfire Wang
Is there a file named __init__.py in the modulename dir? Best regards On Wed, Mar 4, 2015 at 11:25 AM, wrote: > I have the following directory /home/me/projects/modulename. > > I update PYTHONPATH using the following command: > export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename > > It

Setting PYTHONPATH does not allow importing module

2015-03-03 Thread faruk
I have the following directory /home/me/projects/modulename. I update PYTHONPATH using the following command: export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename It seems to have been added: [me@machine ~]$ python -c "import sys; print(sys.path)" ['',... '/home/me', '/home/me/projects/modu