Display error if try to start with Python2

This commit is contained in:
shortcutme 2019-03-18 01:08:20 +01:00
parent cfdc6bac7b
commit f8511bf199
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 4 additions and 0 deletions

View File

@ -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...")