This snippets allows to import a compiled python file in a simple way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import imp | |
# This snippet allows to import a compiled python file | |
# in a simple way | |
my_module = imp.load_compiled( | |
"my_module", r"full\or\relative\path\to\module.pyc") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment