Raphael Michel преди 10 години
родител
ревизия
f56f35cc97
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      nsist/__init__.py

+ 1 - 1
nsist/__init__.py

@@ -282,7 +282,7 @@ if __name__ == '__main__':
                     shutil.rmtree(target_name)
                 elif os.path.exists(target_name):
                     os.unlink(target_name)
-                if self.exclude is not None and len(self.exclude) > 0:
+                if self.exclude:
                     shutil.copytree(file, target_name,
                                     ignore=self.copytree_ignore_callback)
                 else: