Created
July 7, 2016 18:05
-
-
Save HunterLarco/db796a260ad9af8c893c1583855d204e to your computer and use it in GitHub Desktop.
Python Goodness
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
#setup | |
mkdir test | |
echo 'print("Hello World!")' > test/__main__.py | |
python -m zipfile -c test.zip test/* | |
rm -rf test | |
echo '#!/usr/bin/python' > test | |
cat test.zip >> test | |
rm test.zip | |
chmod a+x test | |
# execute | |
./test | |
# file cleanup | |
rm test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment