bndr / bndr/pycycle

Does not honor PYTHONPATH, test case enclosed

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
363
Forks
24
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.