Try to provide python3 compatibility.
authorCarl Hetherington <cth@carlh.net>
Thu, 17 Jan 2019 19:53:29 +0000 (19:53 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 17 Jan 2019 19:53:29 +0000 (19:53 +0000)
src/wscript

index 638a89d4316a08481f0684d69576c77a84001c56..abe23184f0663f3d4b192516b68b520ee067f295 100644 (file)
@@ -3,7 +3,7 @@ def configure(conf):
     # Don't include the micro version number in PACKAGE_VERSION, as
     # this ends up in MXFs and screws up DCP-o-matic's test references
     # every time it changes
-    s = conf.env.VERSION.split('.')
+    s = conf.env.VERSION.split(b'.')
     major_minor = '%s.%s.0' % (s[0], s[1])
     conf.env.append_value('CXXFLAGS', '-DPACKAGE_VERSION="%s"' % major_minor)
     if conf.options.target_windows: