Display error if try to start with Python2
This commit is contained in:
parent
cfdc6bac7b
commit
f8511bf199
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,10 @@ import sys
|
|||
|
||||
|
||||
def main():
|
||||
if sys.version_info.major < 3:
|
||||
print("Error: Python 3.x is required")
|
||||
sys.exit(0)
|
||||
|
||||
if "--silent" not in sys.argv:
|
||||
print("- Starting ZeroNet...")
|
||||
|
||||
|
|
Loading…
Reference in a new issue