Hello,
I’m new to writing python scripts for Fiji. I was wondering if there was a way I can call a function from another .py file.
I have Hello_.py
def Hello():
print "Hello"
I want to call Hello() from main.py:
from Hello_ import Hello
def main():
Hello()
main()
I get the error message:
line 1, in <module>
import Hello
ImportError: No module named Hello_
I’m running them in the Fiji Script editor and both files are in the same folder.