|
@ -21,9 +21,11 @@ def add_depends(mod_path): |
|
|
# shutil.copy(modpack_conf, modpack_txt) |
|
|
# shutil.copy(modpack_conf, modpack_txt) |
|
|
with open(modpack_txt, 'w') as outs: |
|
|
with open(modpack_txt, 'w') as outs: |
|
|
wroteCount = 0 |
|
|
wroteCount = 0 |
|
|
|
|
|
lineN = 0 |
|
|
with open(modpack_conf, 'r') as ins: |
|
|
with open(modpack_conf, 'r') as ins: |
|
|
for rawL in ins: |
|
|
for rawL in ins: |
|
|
line = line.strip() |
|
|
lineN += 1 # Start counting at 1. |
|
|
|
|
|
line = rawL.strip() |
|
|
signI = line.find("=") |
|
|
signI = line.find("=") |
|
|
if signI < 1: |
|
|
if signI < 1: |
|
|
continue |
|
|
continue |
|
|