From 85941e89b1d849293e137d98ea1aaf2abda91900 Mon Sep 17 00:00:00 2001 From: sanj Date: Fri, 31 Dec 2010 21:21:30 +0530 Subject: [PATCH] silly syntax error --- index/harddrives/importFromTxtFiles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index/harddrives/importFromTxtFiles.py b/index/harddrives/importFromTxtFiles.py index b09e91b..be6e720 100644 --- a/index/harddrives/importFromTxtFiles.py +++ b/index/harddrives/importFromTxtFiles.py @@ -16,7 +16,8 @@ def addHardDrive(filename, path): filePath = join(path, filename) hdName = filename.replace(".txt", "") file = open(filePath) - if hd = hardDriveExists(hdName): + if hardDriveExists(hdName): + hd = hardDriveExists(hdName) hd.remove_files() else: hd = HardDrive(name = hdName)