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

Fix import_path for python #2

Closed
kuba-- opened this issue Oct 14, 2019 · 0 comments · Fixed by #3
Closed

Fix import_path for python #2

kuba-- opened this issue Oct 14, 2019 · 0 comments · Fixed by #3

Comments

@kuba--
Copy link
Member

kuba-- commented Oct 14, 2019

for following python code:

import sys
sys.path.append('/foo/bar/mock-0.3.1')

from testcase import TestCase
from testutils import RunTests
from mock import Mock, sentinel, patch

and command: ./qpl -f /tmp/test.py.pl -f import.pl -q "import_path(Path)."
we get:

Path = [sys,Head]
Path = [testcase]
Path = [testutils]
Path = [mock]

Head atom is incorrect here!

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

Successfully merging a pull request may close this issue.

1 participant