Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there,
I am new to Python. In my need to learn more I am using pycharm to create a very simple project with two packages (tools and main). Both folders have __init__.py. Tools (the name is not actually 'Tools') has a .py file which has a def foo() which print 'something' and main has a .py file that imports Tools and runs Tools.foo(). In PyCharm everything works fine but when i run the main.py in max (using "python.executefile") it gives an error:
<type 'exception.ImportError'> No module named Tools
I have done a lot of internet research but i did not managed to find an answer. Any clue?
Solved! Go to Solution.