From f9e1a7b755134089503ed7d43873d7196e703910 Mon Sep 17 00:00:00 2001 From: Li Date: Sun, 8 May 2022 13:44:46 +1200 Subject: [PATCH] Update python build script!! --- HorseIsleServer/prebuild.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/HorseIsleServer/prebuild.py b/HorseIsleServer/prebuild.py index 51e4c11..a8f6155 100644 --- a/HorseIsleServer/prebuild.py +++ b/HorseIsleServer/prebuild.py @@ -20,11 +20,13 @@ def update_asm_info(assemblyinfofile): # Determine git stuff. -versioning_folder = os.path.join("LibHISP", "Resources", "Versioning") - -if not os.path.exists(versioning_folder): - os.mkdir(versioning_folder) - +try: + versioning_folder = os.path.join("LibHISP", "Resources", "Versioning") + if not os.path.exists(versioning_folder): + os.mkdir(versioning_folder) +except FileExistsError: + pass + commit_hash = "0"*40 commit_tag = "v0.0.0" commit_branch = "master"