Skip to content

Instantly share code, notes, and snippets.

@Everalda
Created January 9, 2019 01:18
Show Gist options
  • Save Everalda/8d354cda59ef34598f1d18f471d4f89a to your computer and use it in GitHub Desktop.
Save Everalda/8d354cda59ef34598f1d18f471d4f89a to your computer and use it in GitHub Desktop.
Read parameter in Terminal python
#!/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