1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-10-02 08:50:47 +00:00

Uncomment the actually useful bits!

This commit is contained in:
Jonathan Coates 2021-08-17 21:01:33 +01:00
parent 4a560c4ad8
commit 1be9a9df22
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

6
go4it
View File

@ -103,8 +103,8 @@ def gen_runs() -> None:
""" """
Generate .idea run files Generate .idea run files
""" """
# setup() setup()
# subprocess.check_call(["./gradlew", "--no-daemon", "genRuns"]) subprocess.check_call(["./gradlew", "--no-daemon", "genIntellijRuns"])
re = regex.compile(r"(mc-.*)_run(.*)\.xml") re = regex.compile(r"(mc-.*)_run(.*)\.xml")
for path in pathlib.Path(".idea/runConfigurations").glob("*.xml"): for path in pathlib.Path(".idea/runConfigurations").glob("*.xml"):
@ -120,7 +120,7 @@ def gen_runs() -> None:
print("Cannot find Java for branch") print("Cannot find Java for branch")
continue continue
component = 'testMod' if name == 'TestServer' else 'main' component = 'testMod' if name.startswith('Test') else 'main'
xml = ET.parse(path) xml = ET.parse(path)
module = xml.find("./configuration/module") module = xml.find("./configuration/module")
if module is None: if module is None: