diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-26 04:46:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-26 04:46:10 +0300 |
commit | 9b96dd0f6157fabf0f267ece54fa604094ba303c (patch) | |
tree | 61fc3ccb2f795f197357c04dd46909dea35266b6 /release/datafiles/prvicons_update.py | |
parent | 0f14c72c29c9478056f92f102ca9f94ad9f60a5c (diff) |
icon update: replace os.system w/ subprocess.check_call
Diffstat (limited to 'release/datafiles/prvicons_update.py')
-rwxr-xr-x | release/datafiles/prvicons_update.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/release/datafiles/prvicons_update.py b/release/datafiles/prvicons_update.py index 448a43df9ce..bc170b98545 100755 --- a/release/datafiles/prvicons_update.py +++ b/release/datafiles/prvicons_update.py @@ -2,9 +2,10 @@ # This script updates icons from the SVG file import os +import subprocess import sys -BASEDIR = os.path.abspath(os.path.dirname(__file__)) + os.sep +BASEDIR = os.path.abspath(os.path.dirname(__file__)) inkscape_path = 'inkscape' @@ -13,5 +14,10 @@ if sys.platform == 'darwin': if os.path.exists(inkscape_app_path): inkscape_path = inkscape_app_path -cmd = inkscape_path + ' "%sprvicons.svg" --without-gui --export-png="%sprvicons.png"' % (BASEDIR, BASEDIR) -os.system(cmd) +cmd = ( + inkscape_path, + os.path.join(BASEDIR, "prvicons.svg"), + "--without-gui", + "--export-png=" + os.path.join(BASEDIR, "prvicons.png"), +) +subprocess.check_call(cmd) |