Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

POX path detection using standard tools. #42

Open
wants to merge 1 commit into
base: kinetic
Choose a base branch
from

Conversation

jameskyle
Copy link

Parsing of PYTHONPATH does not account for a standard installation of
POX. Catching an ImportError accounts for any valid method of installing
POX.

Also, instead of searching through all paths and looking for a match on
pox, then appending pox.py to that path this patch uses the file
attribute of the module itself (after successful import).

Parsing of PYTHONPATH does not account for a standard installation of
POX. Catching an ImportError accounts for any valid method of installing
POX.

Also, instead of searching through all paths and looking for a match on
pox, then appending pox.py to that path this patch uses the __file__
attribute of the module itself (after successful import).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant