Import("env") import time ver = time.time() f = open("version.txt", "w") f.write(str(ver)) f.close() env.Append(CPPDEFINES=[ ("FW_VERSION", ver) ])