Created
October 2, 2014 19:08
-
-
Save josePhoenix/ca9ab6edfe3aa880a4c9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| def do_a_thing(filename): | |
| print "Filename was", filename | |
| if __name__ == "__main__": | |
| import sys | |
| do_a_thing(sys.argv[1]) | |
| # $ python ~/example.py foo.bar | |
| # Filename was foo.bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment