Python module pseudo compiler idea.
Say I work for a python project, in folder myfolder/
it has a library file "Mylibrary.py" and a script file "myscript.py"
and in myscript.py I imported Mylibrary.py, is there a program such that
it will replace "import Mylibrary" by my library file literally and
replace all function call "Mylibrary.myfunction" by "myfunction"? It kind
of like "compile" multiple python scripts into one. Or this would be a
terrible solution
The reason is that I want to use myscript as an executable in other
folders without having to copy multiple files or making a package.
No comments:
Post a Comment