Moved version check above directory check.

This commit is contained in:
Harrison Deng 2021-04-01 20:20:33 -05:00
parent bc072b2e10
commit 9f7f7287d3

View File

@ -15,13 +15,14 @@ BUILDTOOLS_DIR = "buildtools/"
DEFAULT_SERVER_VER = "latest"
DEFAULT_JVM_DEBUG_PORT = 25577
if (os.getcwd().endswith("scripts/")):
os.chdir("../")
if sys.version_info.major != 3:
print("Script requires Python3 to run. You are currently running {0}.".format(sys.version))
exit(1)
if (os.getcwd().endswith("scripts/")):
os.chdir("../")
def project_gen() -> int:
print("Generate Project:")
print("Step 1) Generate Maven project.")