Menu

#1228 Unresolved import. Problem with PYTHON_PATH

open
nobody
None
5
2010-10-02
2010-10-02
No

#example.py
i_am_a_var = 123
class example(object):
def __init__(self):
....
def my_func(self):
....

#another_example.py
from example import my_func #[Unresolved import]

but
from example.example import my_func #OK

Because pydev treat example.py at a class named example and a variable i_am_a_var.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.