Files reformatted by pre-commit
This commit is contained in:
parent
35f2c3c142
commit
1e6c3fa92b
1
SCsub
1
SCsub
|
@ -8,6 +8,7 @@ module_env = env.Clone()
|
|||
module_env.Append(CPPDEFINES=["LIMBOAI_MODULE"])
|
||||
|
||||
import limboai_version
|
||||
|
||||
limboai_version.generate_module_version_header()
|
||||
|
||||
module_env.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
|
|
@ -15,6 +15,7 @@ env = SConscript("godot-cpp/SConstruct")
|
|||
# Generate version header.
|
||||
sys.path.append("./limboai")
|
||||
import limboai_version
|
||||
|
||||
os.chdir("./limboai")
|
||||
limboai_version.generate_module_version_header()
|
||||
os.chdir("..")
|
||||
|
|
|
@ -8,8 +8,10 @@ doc_branch = "latest"
|
|||
|
||||
# Code that generates version header
|
||||
|
||||
|
||||
def _git_hash(short: bool = False):
|
||||
import subprocess
|
||||
|
||||
ret = "unknown"
|
||||
try:
|
||||
if short:
|
||||
|
@ -31,7 +33,7 @@ def _get_version_info():
|
|||
"status": status,
|
||||
"doc_branch": doc_branch,
|
||||
"git_short_hash": _git_hash(short=True),
|
||||
"git_hash": _git_hash(short=False)
|
||||
"git_hash": _git_hash(short=False),
|
||||
}
|
||||
|
||||
|
||||
|
@ -55,5 +57,8 @@ def generate_module_version_header():
|
|||
#define LIMBOAI_VERSION_DOC_URL "https://limboai.readthedocs.io/en/" LIMBOAI_VERSION_DOC_BRANCH "/"
|
||||
|
||||
#endif // LIMBOAI_VERSION_GEN_H
|
||||
""".format(**version_info))
|
||||
""".format(
|
||||
**version_info
|
||||
)
|
||||
)
|
||||
f.close()
|
||||
|
|
Loading…
Reference in New Issue