How to call a script file? ModuleNotFoundError: No module...

Hi,
i am trying to call after executing the python file

https://ngsolve.org/media/kunena/attachments/822/fibo-main.py
the file

https://ngsolve.org/media/kunena/attachments/822/fibo.py

In python3 works ([color=purple] python3 fibo-main.py 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987[/color]), is there any way to do something similar using ngsolve? I see the error: [color=purple] netgen fibo-main.py

importing NGSolve-6.2.1709-77-gef89d2d0
(should) load python file ‘fibo-mai.py’
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘fibo’
Finished executing fibo-main.py[/color]

best wishes
Makis

Attachment: fibo-main.py

Attachment: fibo.py

Attachment: fibo_2017-11-23.py

Attachment: fibo_2017-11-23-2.py

Hi,

you have to add the working directory (“.”) to the PYTHONPATH.
Using bash, this can be done as follows

export PYTHONPATH=$PYTHONPATH:.

Best,
Christoph