Skip to content

Commit

Permalink
fix(binarization): Add missing slash from gamepath
Browse files Browse the repository at this point in the history
  • Loading branch information
NMC-TBone authored and StjerneIdioten committed Nov 24, 2023
1 parent fbec170 commit 78105ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/i3dio/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def export_blend_to_i3d(filepath: str, axis_forward, axis_up) -> dict:
logger.error(f"Empty Game Path")
else:
try:
conversion_result = subprocess.run(args=[str(i3d_binarize_path), '-in', str(filepath), '-out', str(filepath), '-gamePath', str(game_path)], timeout=BINARIZER_TIMEOUT_IN_SECONDS, check=True, text=True, stdout = subprocess.PIPE, stderr=subprocess.STDOUT)
conversion_result = subprocess.run(args=[str(i3d_binarize_path), '-in', str(filepath), '-out', str(filepath), '-gamePath', f"{game_path}/"], timeout=BINARIZER_TIMEOUT_IN_SECONDS, check=True, text=True, stdout = subprocess.PIPE, stderr=subprocess.STDOUT)
except FileNotFoundError as e:
logger.error(f'Invalid path to i3dConverter.exe: "{i3d_binarize_path}"')
except subprocess.TimeoutExpired as e:
Expand Down

0 comments on commit 78105ee

Please sign in to comment.