aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-08-25 09:52:23 +0300
committerOrgad Shaneh <orgads@gmail.com>2015-08-25 08:22:21 +0000
commitb3f9207ea962b4106b017a435dc19bc93bede0d6 (patch)
tree1c630bd79f6419c5d58c0279306f2185d777f2af
parent4575ffd9e9072c42a38785dcf4b872f4b0ac8823 (diff)
Installer: Fix syntax for Python 3
Change-Id: I09a08f032b2cb774c0cf7d7290b9ab7e886137a2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
-rwxr-xr-xscripts/packageIfw.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/packageIfw.py b/scripts/packageIfw.py
index 25ecb46355..67aba26a5e 100755
--- a/scripts/packageIfw.py
+++ b/scripts/packageIfw.py
@@ -38,7 +38,7 @@ import shutil
import inspect
def usage():
- print 'Usage: %s [-v|--version-string=versionstring] [-i|--installer-path=/path/to/installerfw] [-a|--archive=archive.7z] <outputname>' % os.path.basename(sys.argv[0])
+ print('Usage: %s [-v|--version-string=versionstring] [-i|--installer-path=/path/to/installerfw] [-a|--archive=archive.7z] <outputname>' % os.path.basename(sys.argv[0]))
def substitute_file(infile, outfile, substitutions):
with open(infile, 'r') as f:
@@ -132,9 +132,9 @@ def main():
ifw_call = [os.path.join(ifw_location, 'bin', 'binarycreator'), '-c', os.path.join(out_config_dir, config_name), '-p', out_packages_dir, installer_name, '--offline-only' ]
subprocess.check_call(ifw_call, stderr=subprocess.STDOUT)
finally:
- print 'Cleaning up...'
+ print('Cleaning up...')
shutil.rmtree(temp_dir)
- print 'Done.'
+ print('Done.')
if __name__ == '__main__':
main()