|import vs include [message #1835707]
||Thu, 10 December 2020 18:49
| Axel RICHARD
Registered: September 2010
I do some tests with EASE and PyDev and its really powerful! Kudos to the team!
Let's say I have two Python scripts in the same folder.
for iproject in getWorkspace().getProjects():
if not iproject.isOpen():
ifile = iproject.getFile("README.md")
if not ifile.exists():
contents = "# " + iproject.getName() + "\n\n"
contents += "A Java Project\n"
contents += "A Python Project\n"
and Test.py. In Test.py I want to call fct_readme().
The first approach:
leads to an error when executed with Run As > EASE Script (ImportError: No module named scripts.AddReadMe)
The second approach:
is well executed with Run As > EASE Script.
The problem with the second approach is that PyDev shows errors for the include(...) statement and the fct_readme() call.
Is it possible to have no editor error with PyDev editor with the second approach, or better have no execution error with the first approach?
Any pointers to solve one or both problems will be appreciated.
[Updated on: Thu, 10 December 2020 18:50]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.14217 seconds