Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add current path when using from_rev #806

Open
PythonFZ opened this issue Jun 19, 2024 · 1 comment
Open

Add current path when using from_rev #806

PythonFZ opened this issue Jun 19, 2024 · 1 comment

Comments

@PythonFZ
Copy link
Member

PythonFZ commented Jun 19, 2024

I found that when using zndraw node.atoms --remote . when using src.Node as the node, I get an ModuleNotFoundError: No module named 'src'. The package might be available via 'pip install src'

sys.path.append(pathlib.Path.cwd().as_posix())

This was fixable by running export PYTHONPATH="${PYTHONPATH}:<PWD>" before

@PythonFZ
Copy link
Member Author

PythonFZ commented Aug 27, 2024

need

import sys
import os

sys.path.insert(0, os.getcwd())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant