mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
setup: Fix version detection when subproject
This commit is contained in:
1 parent
61fbf134c5
commit
37588948eb
1 file changed
+1
-1
@@ -21,7 +21,7 @@ def detect_version():
|
||||
if line.startswith("Version: ")][0].strip()
|
||||
version = version_line[9:]
|
||||
else:
|
||||
sys.path.insert(0, str(PACKAGE_DIR))
|
||||
sys.path.insert(0, os.environ.get("MESON_SOURCE_ROOT", str(PACKAGE_DIR)))
|
||||
from releng.frida_version import detect
|
||||
version = detect(PACKAGE_DIR).name.replace("-dev.", ".dev")
|
||||
return version
|
||||
|
||||
Reference in new issue
Block a user