Created
January 12, 2018 15:47
-
-
Save odinsbane/f54dd4e6911c8090beb9573ec5d7f821 to your computer and use it in GitHub Desktop.
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
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