Permalink
Browse files

check argv more carefully

  • Loading branch information...
1 parent 82ce084 commit 35d5670a5f88614abe4eb148883e8e41e5fb2f88 @narusso committed Feb 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 perf_plot.py
View
@@ -7,7 +7,7 @@
timevslength = {}
timevsvolume = {}
dir="."
-if sys.argv[1]: dir=sys.argv[1]
+if len(sys.argv) > 1: dir=sys.argv[1]
files=os.listdir(dir)
for file in files:
try:

0 comments on commit 35d5670

Please sign in to comment.