Skip to content

Instantly share code, notes, and snippets.

@aaossa
Last active September 8, 2015 15:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aaossa/c164b7216d2d89d5ad61 to your computer and use it in GitHub Desktop.
This snippets allows to import a compiled python file in a simple way
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