SeattleTestbed / portability

Use Repy code in Python
MIT License
0 stars 7 forks source link

repyportability utilizes repyhelper.translate_and_import to import dylink #26

Open choksi81 opened 10 years ago

choksi81 commented 10 years ago

As repyhelper is deprecated with repyV2, we should come up with an alternative strategy to address repyportability's use of repyhelper. It is being used to import dylink, the new method of importing repy modules.

https://seattle.poly.edu/browser/seattle/branches/repy_v2/portability/repyportability.py#L226

aaaaalbert commented 10 years ago

I've interactively tested plain import, and am looking at using __import__ or the imp Python module as replacements. Either way, I run into a NameError as the callfunc variable does not exist. This is regardless of importing repyportability first.

Checking the locals() and globals of the module being imported versus the interactive interpreter it is seen that the functions defined by repyportability are not available to the module. More research is needed.

aaaaalbert commented 9 years ago

I've created a version of repyportability without repyhelper, see aaaaalbert@274c7582e624876ec97b8c3990ed5d4ee1648384