forked from qt-creator/qt-creator
Installer: Fix syntax for Python 3
Change-Id: I09a08f032b2cb774c0cf7d7290b9ab7e886137a2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
4575ffd9e9
commit
b3f9207ea9
@@ -38,7 +38,7 @@ import shutil
|
|||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
def usage():
|
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):
|
def substitute_file(infile, outfile, substitutions):
|
||||||
with open(infile, 'r') as f:
|
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' ]
|
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)
|
subprocess.check_call(ifw_call, stderr=subprocess.STDOUT)
|
||||||
finally:
|
finally:
|
||||||
print 'Cleaning up...'
|
print('Cleaning up...')
|
||||||
shutil.rmtree(temp_dir)
|
shutil.rmtree(temp_dir)
|
||||||
print 'Done.'
|
print('Done.')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Reference in New Issue
Block a user