fix: makedirs if not present

This commit is contained in:
Sefa Eyeoglu 2022-03-21 21:13:14 +01:00
parent 1dce769555
commit 3b5304a707
No known key found for this signature in database
GPG Key ID: C10411294912A422
3 changed files with 21 additions and 0 deletions

View File

@ -8,6 +8,13 @@ from metautil import *
PMC_DIR = os.environ["PMC_DIR"]
UPSTREAM_DIR = os.environ["UPSTREAM_DIR"]
def mkdirs(path):
if not os.path.exists(path):
os.makedirs(path)
mkdirs(PMC_DIR + "/net.minecraftforge")
FORGEWRAPPER_MAVEN = "https://polymc.github.io/files/maven/%s"
def eprint(*args, **kwargs):

View File

@ -3,6 +3,12 @@ from liteloaderutil import *
PMC_DIR = os.environ["PMC_DIR"]
UPSTREAM_DIR = os.environ["UPSTREAM_DIR"]
def mkdirs(path):
if not os.path.exists(path):
os.makedirs(path)
mkdirs(PMC_DIR + "/com.mumfrey.liteloader")
# load the locally cached version list
def loadLiteloaderJson():

View File

@ -9,6 +9,14 @@ from metautil import *
PMC_DIR = os.environ["PMC_DIR"]
UPSTREAM_DIR = os.environ["UPSTREAM_DIR"]
def mkdirs(path):
if not os.path.exists(path):
os.makedirs(path)
mkdirs(PMC_DIR + "/net.minecraft")
mkdirs(PMC_DIR + "/org.lwjgl")
mkdirs(PMC_DIR + "/org.lwjgl3")
def map_log4j_artifact(version):
if version == "2.0-beta9":