Real fix this time, modify GuiAutoImport to actually tell importer to monitor the directory

This commit is contained in:
Worros
2008-10-13 02:06:28 +08:00
parent 8ca5a5c965
commit 9a60cf84c8
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -119,7 +119,7 @@ class Importer:
if os.path.isdir(file):
print "BulkImport is not recursive - please select the final directory in which the history files are"
else:
self.filelist = self.filelist + [dir+os.sep+file]
self.filelist = self.filelist + [os.path.join(dir, file)]
#Remove duplicates
set(self.filelist)
@@ -137,6 +137,7 @@ class Importer:
for dir in self.dirlist:
for file in os.listdir(dir):
self.filelist = self.filelist + [dir+os.sep+file]
set(filelist)
for file in self.filelist:
stat_info = os.stat(file)