From 8f7eeae4a7368096d0d479199bdb8b79e24b19b6 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 18 Nov 2024 15:40:14 -0500 Subject: [PATCH] fix re --- src/gam.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gam.spec b/src/gam.spec index 0aad7ec0..5be75935 100644 --- a/src/gam.spec +++ b/src/gam.spec @@ -1,6 +1,6 @@ # -*- mode: python ; coding: utf-8 -*- from os import getenv -from re import search +import re from sys import platform from PyInstaller.utils.hooks import copy_metadata @@ -10,7 +10,7 @@ from gam.gamlib.glverlibs import GAM_VER_LIBS with open("gam/__init__.py") as f: version_file = f.read() -version = search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M).group(1) +version = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M).group(1) version_tuple = "(" + version.split("-")[0].replace(".", ", ") + ", 0)" with open("version_info.txt.in") as f: