Skip to content

Commit

Permalink
Clean up the user input of files
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed May 18, 2017
1 parent e98a19c commit 24c40fa
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions jpgSubtraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@

from scipy import misc
import numpy as np
import sys

# Get the files
print("Enter first file name")
beforeFile = input()
print("Enter second file name")
afterFile = input()
if len(sys.argv) > 1:
# Get the files from the system command line arguments
beforeFile = sys.argv[1]
afterFile = sys.argv[2]
else:
# Get the files with user input
beforeFile = input("Enter first file name: ")
afterFile = input("Enter second file name: ")


# Read files in
Expand Down

0 comments on commit 24c40fa

Please sign in to comment.