mirror of
https://github.com/unmojang/meta.git
synced 2025-09-24 03:31:03 -04:00
fix: makedirs if not present
This commit is contained in:
parent
1dce769555
commit
3b5304a707
@ -8,6 +8,13 @@ from metautil import *
|
|||||||
PMC_DIR = os.environ["PMC_DIR"]
|
PMC_DIR = os.environ["PMC_DIR"]
|
||||||
UPSTREAM_DIR = os.environ["UPSTREAM_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"
|
FORGEWRAPPER_MAVEN = "https://polymc.github.io/files/maven/%s"
|
||||||
|
|
||||||
def eprint(*args, **kwargs):
|
def eprint(*args, **kwargs):
|
||||||
|
@ -3,6 +3,12 @@ from liteloaderutil import *
|
|||||||
PMC_DIR = os.environ["PMC_DIR"]
|
PMC_DIR = os.environ["PMC_DIR"]
|
||||||
UPSTREAM_DIR = os.environ["UPSTREAM_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
|
# load the locally cached version list
|
||||||
def loadLiteloaderJson():
|
def loadLiteloaderJson():
|
||||||
|
@ -9,6 +9,14 @@ from metautil import *
|
|||||||
PMC_DIR = os.environ["PMC_DIR"]
|
PMC_DIR = os.environ["PMC_DIR"]
|
||||||
UPSTREAM_DIR = os.environ["UPSTREAM_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):
|
def map_log4j_artifact(version):
|
||||||
if version == "2.0-beta9":
|
if version == "2.0-beta9":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user