From 0e952a1278d2ba43fc23a7ffac24a5d56202a58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=B6ne?= Date: Thu, 15 Mar 2018 13:22:42 +0100 Subject: [PATCH] Fixed bug that nulls version info --- templates/firestarter_global_h.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/firestarter_global_h.py b/templates/firestarter_global_h.py index a776281a..7bed6925 100644 --- a/templates/firestarter_global_h.py +++ b/templates/firestarter_global_h.py @@ -23,7 +23,7 @@ def version_info(file,major_version,minor_version,version_info,build_date): file.write("#define VERSION_MAJOR {}\n".format(major_version)) file.write("#define VERSION_MINOR {}\n".format(minor_version)) # "" for python2, "\"\"" for python3 - if version_info is "" or "\"\"": + if version_info is "" or version_info is "\"\"": file.write("#define VERSION_INFO \"\" //additional information, e.g. \"BETA\"\n") else: file.write("#define VERSION_INFO \"{}\" //additional information, e.g. \"BETA\"\n".format(' '+version_info.replace("\"","")))