Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Does not honor PYTHONPATH, test case enclosed #12

@Drarok

Description

@Drarok

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions