Skip to content

Commit

Permalink
Fix data file not being found
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-haire committed Jan 29, 2024
1 parent e946d06 commit 9099016
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/gui/WorkerThread.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def run(self):
if not self.installer_params.skip_plugin_import:
self.import_plugin_data(plugin)

if not self.installer_params.skip_plugin_move:
if (not self.installer_params.skip_plugin_move and
not self.installer_params.skip_plugin_import):
for plugin in self.plugins:
self.move_plugin_to_output(plugin)
except InterruptException:
Expand Down Expand Up @@ -371,6 +372,9 @@ def extract_bsas(self, archives: list[Path]):
argument_list_textures = [path_bsab, "-e", "-f", "textures"]

for archive in archives:
if (str(archive)).lower().endswith(".nam"):
continue

argument_list_meshes.append(str(archive))
argument_list_textures.append(str(archive))

Expand Down Expand Up @@ -740,10 +744,8 @@ def replace_data_files(self, plugin: PluginData):
if not plugin_dir.exists():
return

for item in plugin_dir.iterdir():
source_item = plugin_dir / item

destination_item = self.output_path / item.name
for source_item in plugin_dir.iterdir():
destination_item = self.output_path / source_item.name

if source_item.is_dir():
shutil.copytree(
Expand Down

0 comments on commit 9099016

Please sign in to comment.