Hello,
I am trying to call a function I wrote in a .py file by another .py file, but I am receiving an error. I created a simple example to better express the issue.
In the SetFigureSizePos.py, there is a function definition called Figure_Size_Pos, which includes a simple if function. It returns a string.
I want to call that function in another .py file in the same directory. That is what zzz.py file in the attachment does. In order to import the function into zzz.py, I use 'from SetFigureSizePos import Figure_Size_Pos'. When I run zzz.py I receive an error in the Python Window saying 'ImportError: No Module named SetFigureSizePos' When I tried this approach directly in Python, it worked. Can you please help me with this issue?
Thank you
Berker
Unable to find an attachment - read this blog