|
a/codesys-ide/scripts/helper.py |
|
b/codesys-ide/scripts/helper.py |
|
... |
|
... |
23 |
dirname = os.path.relpath(os.path.dirname(filename), basepath) |
23 |
dirname = os.path.relpath(os.path.dirname(filename), basepath) |
24 |
destdir = os.path.join(destination, dirname) |
24 |
destdir = os.path.join(destination, dirname) |
25 |
print("dest dir: %s\n" % destdir) |
25 |
print("dest dir: %s\n" % destdir) |
26 |
if not os.path.exists(destdir): |
26 |
if not os.path.exists(destdir): |
27 |
os.mkdir(destdir) |
27 |
os.mkdir(destdir) |
28 |
shutil.copyfile(filename, destdir) |
28 |
shutil.copy2(filename, destdir) |
29 |
print("%s => %s" % (filename, destdir)) |
29 |
print("%s => %s" % (filename, destdir)) |
30 |
|
30 |
|
31 |
# dummy rule |
31 |
# dummy rule |
32 |
def doit(self, filename): |
32 |
def doit(self, filename): |
33 |
artifacts = list() |
33 |
artifacts = list() |