Moved version check above directory check.
This commit is contained in:
parent
bc072b2e10
commit
9f7f7287d3
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user