Browse Source

Fix the use of an uninitialized variable.

master
poikilos 3 years ago
parent
commit
eb98843e1d
  1. 4
      utilities/compatiblizemod.py

4
utilities/compatiblizemod.py

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

Loading…
Cancel
Save