]> git.parisson.com Git - telemeta-data.git/commitdiff
fix hidden files again
authoryomguy <yomguy@3bf09e05-f825-4182-b9bc-eedd7160adf0>
Tue, 3 May 2011 15:01:24 +0000 (15:01 +0000)
committeryomguy <yomguy@3bf09e05-f825-4182-b9bc-eedd7160adf0>
Tue, 3 May 2011 15:01:24 +0000 (15:01 +0000)
git-svn-id: http://svn.parisson.org/svn/crem@178 3bf09e05-f825-4182-b9bc-eedd7160adf0

trunk/import/audio_import/wav_import.py

index 0913829bb5adc271062b2b43aefa116363882684..6e1da4444b6fa8ff004e2cbb8b8ab761ab0f3ab6 100644 (file)
@@ -47,12 +47,13 @@ class TelemetaWavImport:
     def wav_import(self):
         from telemeta.models import MediaItem
         for collection in self.collections:
-            if not '/.' in collection:
+            collection _dir = self.source_dir + os.sep + collection
+            if not '/.' in collection_dir:
                 self.collection_name = collection.split(os.sep)[-1]
                 msg = '************************ ' + collection + ' ******************************'
                 self.logger.write_info(collection, msg[:70])
 
-                collection_files = os.listdir(self.source_dir + os.sep + collection)
+                collection_files = os.listdir(collection_dir)
                 if not collection + '.csv' in collection_files:
                     msg = 'Le fichier CSV est mal nommé ou inexistant'
                     self.logger.write_error(collection, msg)