mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-09 08:50:29 +00:00
Uncomment the actually useful bits!
This commit is contained in:
parent
4a560c4ad8
commit
1be9a9df22
6
go4it
6
go4it
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user