Skip to content

Commit

Permalink
fix re
Browse files Browse the repository at this point in the history
  • Loading branch information
jay0lee authored Nov 18, 2024
1 parent f2e16c5 commit 8f7eeae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gam.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 8f7eeae

Please sign in to comment.