Skip to content

Commit 90bf270

Browse files
committed
Patch fix for weapon_scripts import due to incompatibility with bms branch.
1 parent 4dfcb92 commit 90bf270

File tree

1 file changed

+4
-2
lines changed
  • addons/source-python/packages/source-python/core

1 file changed

+4
-2
lines changed

addons/source-python/packages/source-python/core/dumps.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
from paths import LOG_PATH
2525
# Stringtables
2626
from stringtables import string_tables
27-
# Weapons
28-
from weapons.scripts import weapon_scripts
2927

3028

3129
# =============================================================================
@@ -158,6 +156,10 @@ def dump_string_tables(filename):
158156

159157
def dump_weapon_scripts(filename):
160158
"""Dump all WeaponInfo instances to the given file name."""
159+
# Import weapon_scripts
160+
# This was moved here due to issues with the bms branch
161+
from weapons.scripts import weapon_scripts
162+
161163
# Open/close the file
162164
with LOG_PATH.joinpath(filename + '.txt').open('w') as open_file:
163165

0 commit comments

Comments
 (0)