scons: fix build with forum_user_handler=true + py3

This commit is contained in:
loonycyborg 2019-10-13 19:53:45 +03:00
parent 2e4312f5de
commit 4aba57b369

View file

@ -421,7 +421,7 @@ if env["prereqs"]:
found_connector = False
for sql_config in ["mariadb_config", "mysql_config"]:
try:
mysql_config = check_output([sql_config, "--libs", "--cflags"]).replace("\n", " ").replace("-DNDEBUG", "")
mysql_config = check_output([sql_config, "--libs", "--cflags"]).decode("utf-8").replace("\n", " ").replace("-DNDEBUG", "")
mysql_flags = env.ParseFlags(mysql_config)
env.Append(CPPDEFINES = ["HAVE_MYSQLPP"])
env.MergeFlags(mysql_flags)