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

Does not honor PYTHONPATH, test case enclosed #12

Open
Drarok opened this issue Sep 13, 2019 · 0 comments
Open

Does not honor PYTHONPATH, test case enclosed #12

Drarok opened this issue Sep 13, 2019 · 0 comments

Comments

@Drarok
Copy link

Drarok commented Sep 13, 2019

Here's a test script proving the cycle is not detected:

#!/bin/bash
mkdir test-pycycle
cd test-pycycle
mkdir -p app/stuff
touch app/__init__.py
touch app/stuff/__init__.py
echo "from stuff import users" > app/things.py
echo "import things" > app/stuff/users.py
python -m virtualenv .venv
source .venv/bin/activate
pip install pycycle
PYTHONPATH=app pycycle --source app  # Passes just fine
PYTHONPATH=app python app/things.py  # Fails
@Drarok Drarok changed the title Does not work, test case enclosed Does not honor PYTHONPATH, test case enclosed Sep 13, 2019
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