Skip to content

Commit

Permalink
check argv more carefully
Browse files Browse the repository at this point in the history
  • Loading branch information
narusso committed Feb 28, 2012
1 parent 82ce084 commit 35d5670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perf_plot.py
Expand Up @@ -7,7 +7,7 @@
timevslength = {} timevslength = {}
timevsvolume = {} timevsvolume = {}
dir="." dir="."
if sys.argv[1]: dir=sys.argv[1] if len(sys.argv) > 1: dir=sys.argv[1]
files=os.listdir(dir) files=os.listdir(dir)
for file in files: for file in files:
try: try:
Expand Down

0 comments on commit 35d5670

Please sign in to comment.