Created
January 9, 2019 01:18
-
-
Save Everalda/8d354cda59ef34598f1d18f471d4f89a to your computer and use it in GitHub Desktop.
Read parameter in Terminal python
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
#!/usr/bin/python | |
import sys | |
from get_text import textGetter | |
def main(file): | |
#TODO: read file | |
text = textGetter().get_text(file) | |
if __name__ == "__main__": | |
#TODO: Obtain file | |
file = open(sys.argv[1]) | |
main(file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment