Skip to content

Commit

Permalink
Factorio: fix files from mod base directory not being grabbed correct…
Browse files Browse the repository at this point in the history
…ly in non-apworld
  • Loading branch information
Berserker66 committed Dec 15, 2023
1 parent 3e3af38 commit 0fe1fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/factorio/Mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def flop_random(low, high, base=None):
else:
basepath = os.path.join(os.path.dirname(__file__), "data", "mod")
for dirpath, dirnames, filenames in os.walk(basepath):
base_arc_path = versioned_mod_name+"/"+os.path.relpath(dirpath, basepath)
base_arc_path = (versioned_mod_name+"/"+os.path.relpath(dirpath, basepath)).rstrip("/.\\")
for filename in filenames:
mod.writing_tasks.append(lambda arcpath=base_arc_path+"/"+filename,
file_path=os.path.join(dirpath, filename):
Expand Down

0 comments on commit 0fe1fd4

Please sign in to comment.