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

POX path detection using standard tools.#42

Open
jameskyle wants to merge 1 commit intofrenetic-lang:kineticfrom
jameskyle:kinetic
Open

POX path detection using standard tools.#42
jameskyle wants to merge 1 commit intofrenetic-lang:kineticfrom
jameskyle:kinetic

Conversation

@jameskyle
Copy link
Copy Markdown

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.

1 participant