Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4463051
By: anthony-b
Hi to all,
my first post, great to be here!
So, i study PyDev "manual", especially the source directories section but i
cannot figure out how to do this.
I have a project named "TestDirs" in Package Explorer and the usually "src"
directory (or source folder) under it.
Inside the Scr source folder, i create another "PyDev Source Folder" named
folderA
and inside i create a library.py file
with the function "abc" inside it.
I also have a main.py inside the Src folder.
So, i supposed that i was going to write:
from folderA import library
library.abc("pipes...")
and that should work.
Apparently it doesn't and i have already 2 hours trying to figure out what is
going on. The first time i wrote this, the intellisense system worked great
but after running the program i got:
Traceback (most recent call last):
File "C:\Documents and Settings\objectref\workspace\TestDirs\src\main.py",
line 1, in <module>
from folderA import library
ImportError: No module named folderA
and the intellisense stopped working.
Why it cannot find the folderA source folder ?? I've checked the TestDirs
properties
and "Src" as well as "folderA" are displayed in the PYTHON path window...
Can anyone help me with this ? I want very much to create an hierarchy of
directories
so i can store there specific code files but it seems i am missing something
here...
Thanks a lot for any help
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users