mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 06:58:24 +00:00
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.
This commit is contained in:
parent
58a9aacc0b
commit
db0c37557d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue