diff options
Diffstat (limited to 'pySim-prog.py')
-rwxr-xr-x | pySim-prog.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pySim-prog.py b/pySim-prog.py index e92654d..ee5bc98 100755 --- a/pySim-prog.py +++ b/pySim-prog.py @@ -712,6 +712,13 @@ if __name__ == '__main__': # Create command layer scc = SimCardCommands(transport=sl) + # If we use a CSV file as data input, check if the CSV file exists. + if opts.source == 'csv': + print "Using CSV file as data input: " + str(opts.read_csv) + if not os.path.isfile(opts.read_csv): + print "CSV file not found!" + sys.exit(1) + # Batch mode init init_batch(opts) |