[Bf-blender-cvs] [410f3bc1d39] master: Fix 'make icons' on Linux

Campbell Barton noreply at git.blender.org
Thu Sep 5 04:29:01 CEST 2019


Commit: 410f3bc1d39d8e98561966139e797d0514724280
Author: Campbell Barton
Date:   Thu Sep 5 12:28:30 2019 +1000
Branches: master
https://developer.blender.org/rB410f3bc1d39d8e98561966139e797d0514724280

Fix 'make icons' on Linux

CRLF line ending caused shebang to fail.

===================================================================

M	release/datafiles/prvicons_update.py

===================================================================

diff --git a/release/datafiles/prvicons_update.py b/release/datafiles/prvicons_update.py
old mode 100644
new mode 100755
index 96306f0cea9..f76cf2a9852
--- a/release/datafiles/prvicons_update.py
+++ b/release/datafiles/prvicons_update.py
@@ -1,25 +1,25 @@
-#!/usr/bin/env python3
-
-# This script updates icons from the SVG file
-import os
-import subprocess
-import sys
-
-BASEDIR = os.path.abspath(os.path.dirname(__file__))
-
-inkscape_path = 'inkscape'
-
-if sys.platform == 'darwin':
-    inkscape_app_path = '/Applications/Inkscape.app/Contents/Resources/script'
-    if os.path.exists(inkscape_app_path):
-        inkscape_path = inkscape_app_path
-
-cmd = (
-    inkscape_path,
-    os.path.join(BASEDIR, "prvicons.svg"),
-    "--export-width=1536",
-    "--export-height=256",
-    "--without-gui",
-    "--export-png=" + os.path.join(BASEDIR, "prvicons.png"),
-)
-subprocess.check_call(cmd)
+#!/usr/bin/env python3
+
+# This script updates icons from the SVG file
+import os
+import subprocess
+import sys
+
+BASEDIR = os.path.abspath(os.path.dirname(__file__))
+
+inkscape_path = 'inkscape'
+
+if sys.platform == 'darwin':
+    inkscape_app_path = '/Applications/Inkscape.app/Contents/Resources/script'
+    if os.path.exists(inkscape_app_path):
+        inkscape_path = inkscape_app_path
+
+cmd = (
+    inkscape_path,
+    os.path.join(BASEDIR, "prvicons.svg"),
+    "--export-width=1536",
+    "--export-height=256",
+    "--without-gui",
+    "--export-png=" + os.path.join(BASEDIR, "prvicons.png"),
+)
+subprocess.check_call(cmd)



More information about the Bf-blender-cvs mailing list