Skip to content

Instantly share code, notes, and snippets.

@odinsbane
Created January 12, 2018 15:47
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 odinsbane/f54dd4e6911c8090beb9573ec5d7f821 to your computer and use it in GitHub Desktop.
Save odinsbane/f54dd4e6911c8090beb9573ec5d7f821 to your computer and use it in GitHub Desktop.
import sys
""" if this is your original script."""
infile = open(sys.argv[1], 'r').readlines()
""" change it to this."""
def main(filename):
infile = open(filename, 'r').readlines()
if __name__=="__main__":
main(sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment