Commit 4bdd8dda authored by acivgin1's avatar acivgin1
Browse files

bug fix in version check

parent 59ed7304
import subprocess import subprocess
from pathlib import Path from pathlib import Path
from packaging import version from packaging import version as p_version
from .version import __version__ from .version import __version__
...@@ -27,4 +27,4 @@ if script_version not in __version__: ...@@ -27,4 +27,4 @@ if script_version not in __version__:
def v1_is_lower_than_v2(version1: str, version2: str): def v1_is_lower_than_v2(version1: str, version2: str):
return version.parse(version1) < version.parse(version2) return p_version.parse(version1) < p_version.parse(version2)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment