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