Skip to content

Instantly share code, notes, and snippets.

@aaossa
Last active September 8, 2015 15:28
Show Gist options
  • Select an option

  • Save aaossa/c164b7216d2d89d5ad61 to your computer and use it in GitHub Desktop.

Select an option

Save aaossa/c164b7216d2d89d5ad61 to your computer and use it in GitHub Desktop.

Revisions

  1. aaossa revised this gist Sep 8, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion import_compiled.py
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    import imp

    # This snippets allows to import a compiled python file
    # 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")
  2. aaossa revised this gist Sep 6, 2015. No changes.
  3. aaossa created this gist Sep 6, 2015.
    7 changes: 7 additions & 0 deletions import_compiled.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    import imp

    # This snippets 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")