Fixed argparse/argv bug

This commit is contained in:
Sebastian Lohff 2012-04-05 16:23:04 +02:00
parent 8c90e4142d
commit b2ce090b55
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ def main():
try:
testit = open(args.filename, 'r')
testit.close()
FileHandler.filePath = sys.argv[1]
FileHandler.filePath = args.filename
FileHandler.fileName = os.path.basename(args.filename)
FileHandler.fileLength = os.stat(args.filename)[ST_SIZE]
except IOError: