Skip to content

Commit

Permalink
fixed a bug - changed os to sys
Browse files Browse the repository at this point in the history
  • Loading branch information
JaksaVucicevic committed Feb 21, 2012
1 parent de0e9d7 commit eace585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, glob, string
import sys, glob, string

def FileList(path):
return glob.glob(path+"/*.txt")
Expand All @@ -16,7 +16,7 @@ def FixFile(fname,lines,i) :
F.write(line)
F.close()

Flist = FileList(os.argv[1])
Flist = FileList(sys.argv[1])
for Fname in Flist :
F = open(Fname)
lines = F.readlines()
Expand Down

0 comments on commit eace585

Please sign in to comment.