build: no need to replace path separators

Python APIs accept both `\` and `/` as path separators.
This commit is contained in:
Jordan Petridis 2019-02-27 00:51:55 +02:00
parent 69251d051a
commit efbb26b8cb
No known key found for this signature in database
GPG Key ID: E8523968931763BE

View File

@ -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')