We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830ae7a commit f09d9a0Copy full SHA for f09d9a0
cve_bin_tool/egg_updater.py
@@ -9,11 +9,14 @@
9
from setuptools import find_packages
10
from setuptools.dist import Distribution
11
12
-with open(os.path.join("cve_bin_tool", "version.py")) as f:
13
- for line in f:
14
- if line.startswith("VERSION"):
15
- VERSION = ast.literal_eval(line.strip().split("=")[-1].strip())
16
- break
+try:
+ from cve_bin_tools.version import VERSION
+except ModuleNotFoundError:
+ with open(os.path.join("cve_bin_tool", "version.py")) as f:
+ for line in f:
17
+ if line.startswith("VERSION"):
18
+ VERSION = ast.literal_eval(line.strip().split("=")[-1].strip())
19
+ break
20
21
22
def IS_DEVELOP() -> bool:
0 commit comments