Fix handling of empty src dir
authorClifford Wolf <clifford@clifford.at>
Sun, 22 Jan 2017 16:36:21 +0000 (17:36 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 22 Jan 2017 16:36:21 +0000 (17:36 +0100)
sbysrc/sby_core.py

index 17400c4b39bd7dfb8e5cd7f255cebb671784b99d..df475039e64d97a79df618b7813242c6f3534982 100644 (file)
@@ -227,6 +227,8 @@ class SbyJob:
         self.logfile.flush()
 
     def copy_src(self):
+        os.makedirs(self.workdir + "/src")
+
         for dstfile, srcfile in self.files.items():
             dstfile = self.workdir + "/src/" + dstfile