Skip to content

Instantly share code, notes, and snippets.

@timbaileyjones
Created May 22, 2020 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timbaileyjones/13732a10e6696221e762462b30823e00 to your computer and use it in GitHub Desktop.
Save timbaileyjones/13732a10e6696221e762462b30823e00 to your computer and use it in GitHub Desktop.
tim@kudu:/tmp> mkdir test
tim@kudu:/tmp> echo "print('hello world')" > test/__main__.py
tim@kudu:/tmp> zip -j test.zip test/* # -j means to "junk" paths
adding: __main__.py (stored 0%)
tim@kudu:/tmp> python3 test.zip
hello world
tim@kudu:/tmp> # wait, what?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment