diff options
author | sawakita <sawakitanoodles@gmail.com> | 2012-10-01 18:54:45 +0200 |
---|---|---|
committer | sawakita <sawakitanoodles@gmail.com> | 2012-10-01 18:54:45 +0200 |
commit | db0c37557d6ce7c0c903ba2ef17fa5d68da9e1cf (patch) | |
tree | 853a1c831f689806305b0a98d121d7e57366823a /extras | |
parent | 58a9aacc0b5b00e0f06acfe99cb3612127ec24fd (diff) |
Fix param error in load_asm_if_one_exists_in()
Not sure, but I suppose that using *args makes the passed list an element
of the args list, thus causing iteration on args to yield the passed
list as an element instead of yielding the single elements of the passed
list. Maybe.
Diffstat (limited to 'extras')
-rw-r--r-- | extras/analyze_incbins.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/analyze_incbins.py b/extras/analyze_incbins.py index 612c1410..b7295206 100644 --- a/extras/analyze_incbins.py +++ b/extras/analyze_incbins.py @@ -44,9 +44,9 @@ def load_asm(filename=os.path.join(pokered_dir, "main.asm")): raise Exception("file doesn't exists (did you mean one among: {0}?)".format(", ".join(defaults))) return asm -def load_asm_if_one_exists_in(*args): +def load_asm_if_one_exists_in(defaults): global asm - for f in args: + for f in defaults: if os.path.exists(f): asm = get_all_lines_from_file(f) return True |