frenetic-lang / pyretic

The Pyretic language and runtime system
http://frenetic-lang.org/pyretic/
159 stars 99 forks source link

POX path detection using standard tools. #42

Open jameskyle opened 9 years ago

jameskyle commented 9 years ago

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).