SeattleTestbed / portability

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

repyhelper doesn't accept relative path names #3

Closed choksi81 closed 10 years ago

choksi81 commented 10 years ago

The following call does not work:

repyhelper.translate_and_import("./rsa.repy")

However, this works just fine: repyhelper.translate_and_import("rsa.repy")

It seems likely that repyhelper should accept files in any directory. You can use os.basename to get the filename to figure out what a good temporary name for the file is (taking care to handle multiple files of the same name that were imported from different directories).

choksi81 commented 10 years ago

Author: asekine fixed as of r1935