[gtk: 2/4] build: no need to replace path separators



commit efbb26b8cb5dcf07eba386e1939651ee33b05784
Author: Jordan Petridis <jpetridis gnome org>
Date:   Wed Feb 27 00:51:55 2019 +0200

    build: no need to replace path separators
    
    Python APIs accept both `\` and `/` as path separators.

 build-aux/meson/post-install.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/build-aux/meson/post-install.py b/build-aux/meson/post-install.py
index b66961c02b..d61873c551 100644
--- a/build-aux/meson/post-install.py
+++ b/build-aux/meson/post-install.py
@@ -7,8 +7,8 @@ import subprocess
 if 'DESTDIR' not in os.environ:
     gtk_api_version = sys.argv[1]
     gtk_abi_version = sys.argv[2]
-    gtk_libdir = sys.argv[3].replace('/', os.sep)
-    gtk_datadir = sys.argv[4].replace('/', os.sep)
+    gtk_libdir = sys.argv[3]
+    gtk_datadir = sys.argv[4]
 
     gtk_moduledir = os.path.join(gtk_libdir, 'gtk-' + gtk_api_version, gtk_abi_version)
     gtk_printmodule_dir = os.path.join(gtk_moduledir, 'printbackends')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]