Re: problem with import / namespace

2008-05-24 Thread Gabriel Genellina
En Sat, 24 May 2008 08:57:37 -0300, ohad frand <[EMAIL PROTECTED]> escribió: > Thanks for your reply but it stil didnt work: > i opened python shell, changed active directory to \\one and imported tmp1. > now the correct file is loaded. > now i deleted tmp1 > i dir os.chdir(\\two) and imported tmp

Re: problem with import / namespace

2008-05-24 Thread ohad frand
Hi Laszlo Thanks for your reply but it stil didnt work: i opened python shell, changed active directory to \\one and imported tmp1. now the correct file is loaded. now i deleted tmp1 i dir os.chdir(\\two) and imported tmp1 again. now the incorrect file is loaded (the same one as before). i did one

Re: problem with import / namespace

2008-05-21 Thread Laszlo Nagy
ohad frand wrote Hi Thanks for the answer. I probably didnt write the problem accurately but it is not as you described. (i already read before the section that you pointed and it didnt help me) the problem is that i dont want to import a file from different directory but only from the same di

Re: problem with import / namespace

2008-05-21 Thread ohad frand
Hi Thanks for the answer. I probably didnt write the problem accurately but it is not as you described. (i already read before the section that you pointed and it didnt help me) the problem is that i dont want to import a file from different directory but only from the same directory. \\1\tmp2.py i

Re: problem with import / namespace

2008-05-21 Thread Laszlo Nagy
When you try to import a module, python starts to search for it. The was it does the search is very well defined. It mostly depends on the current directory and sys.path. You can read more about this here: "The was it" -> "The way it" - inside your app.py file either make sure that the curre

Re: problem with import / namespace

2008-05-21 Thread Laszlo Nagy
ohad frand wrote: Hi I have a problem that the solution to it must be very simple but i couldnt fint it's answer in the internet so far (i searched for couple of days) the problme is as follows: i have two directories e.g. "\\1" and "\\2" in each directory i have two files with the same names

problem with import / namespace

2008-05-21 Thread ohad frand
Hi I have a problem that the solution to it must be very simple but i couldnt fint it's answer in the internet so far (i searched for couple of days) the problme is as follows: i have two directories e.g. "\\1" and "\\2" in each directory i have two files with the same names e.g. "tmp1.py" and "tm