3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-25 00:44:36 +00:00

try diferennt dirs

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-08-23 18:13:18 -07:00
parent 3b036369f9
commit 778b9a57c3

View file

@ -115,7 +115,8 @@ def _z3_version():
post = os.getenv('Z3_VERSION_SUFFIX', '')
print("z3_version", "release dir", RELEASE_DIR)
if RELEASE_DIR is None:
fn = os.path.join(SRC_DIR, 'VERSION.txt')
fns = [os.path.join(SRC_DIR, 'VERSION.txt'), os.path.join(ROOT_DIR, 'VERSION.txt')]
for fn in fns:
print("loading version file", fn)
if os.path.exists(fn):
with open(fn) as f: