Skip to content
Snippets Groups Projects
Commit 09e3d762 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Python/bundle: added possibility to specify target file

parent bdb94dd0
No related branches found
No related tags found
No related merge requests found
...@@ -19,11 +19,12 @@ class DCTMakeInstallBundle(object): ...@@ -19,11 +19,12 @@ class DCTMakeInstallBundle(object):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
object.__init__(self, *args, **kwargs) object.__init__(self, *args, **kwargs)
def run(self, dct_dir): def run(self, dct_dir, destFile = ""):
currentDir = os.getcwd() currentDir = os.getcwd()
os.chdir(os.path.join(dct_dir, "zUtil_Python")) os.chdir(os.path.join(dct_dir, "zUtil_Python"))
destFile = os.path.join(currentDir, "dct-install.zip") if destFile is "":
destFile = os.path.join(currentDir, "dct-install.zip")
zfid = zipfile.ZipFile(destFile, mode = "w") zfid = zipfile.ZipFile(destFile, mode = "w")
try: try:
for f in DCTMakeInstallBundle.install_bundle_files: for f in DCTMakeInstallBundle.install_bundle_files:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment