Last active
August 29, 2015 14:10
-
-
Save chryss/f45cb9b155203e0cd744 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
import argparse | |
def dosomething(someinput): | |
pass | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("infilepath") | |
args = parser.parse_args() | |
with open(args.infilepath, "rU") as source: | |
for line in source: | |
teststr = line.strip() | |
if not teststr: | |
continue | |
# your code here | |
# dosomething(teststr) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment