mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-30 22:39:52 +00:00
Forced regression scripts to use python 3
This commit is contained in:
@@ -1931,6 +1931,11 @@ class OS:
|
||||
LINUX, MAC, WIN, CYGWIN = range(4)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
if sys.hexversion < 0x03000000:
|
||||
print("Python 3 required")
|
||||
sys.exit(1)
|
||||
|
||||
global SYS
|
||||
if _platform == "linux" or _platform == "linux2":
|
||||
SYS = OS.LINUX
|
||||
|
||||
@@ -398,5 +398,9 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if sys.hexversion < 0x03000000:
|
||||
print("Python 3 required")
|
||||
sys.exit(1)
|
||||
|
||||
sys.exit(main())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user