Hi,<br> <br> I am new to this python. I have installed python 2.4 in my windows xp system. <br> <br> My issue is:<br> i have three directories with some files. <br> ex: Dir ---> Dir1 / file1.1.py<br> " ---> Dir2 / file2.1.py<br> " ---> Dir3 / file3.1.py<br> These are the example directories i have. (Under Dir--->Dir1, Dir2 and Dir3; Under Dir1 --->file1.1.py; Dir2 ---> file2.1.py; Dir3 ----> file3.1.py) <br> In file3.1.py, i am importing the file1.1.py and file2.1.py using the command: <br> from file1.1 import *<br> from file2.1 import *<br> <br> Now, my problem is, file1.1 is imported and i can access the values that are used in that file. But the file2.1 is not imported and returning the error message as "ImportError: No module named file2.1". I couldn't access the var used in that file. Actually, both the files are from
different directories only. Then, why onr file is imported and another is not imported?.<br> <br> My Question is: How to import the files from the different directory to the current file?.<br> <br> Anybody please reply me, i have strucked in this simple file importing concept.<br> <br> Thanks and Regards,<br> abbi.<br> <p>
<hr size=1>Relax. Yahoo! Mail
<a href="http://us.rd.yahoo.com/mail_us/taglines/virusall/*http://communications.yahoo.com/features.php?page=221">virus scanning</a> helps detect nasty viruses!