Closed simondrue closed 1 year ago
Thank you for reporting this! I'm aware of the problem and will fix it when I have time to roll a new release. Until then you can fix it by inserting this snippet at the top of your workflow file:
import os
import os.path
sys.path.insert(0, os.path.dirname(__file__))
Fixed in 1.8.2.
Hi,
After updating to gwf 1.8.1 I've had the following problem when importing functions in other files:
The structure for my current project is as follows:
When running
gwf status
I get the following error:This has worked for previous versions of gwf, and is in line with the documentation found here: https://gwf.app/guide/patterns/#dynamically-generating-a-workflow and the error does not occur when running
python workflow.py
.Thanks for a great tool! 🚀
Kind regard Simon