Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Dec 21, 2024
1 parent 8b0936f commit 482534e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugin/dev_environment/impl/blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ def find_paths(cls, settings: DottedDict) -> list[str]:
dumper_path = Path(tmpdir) / "sys_path_dumper.py"
dumper_path.write_text(
Rf"""
import sys
import bpy
import json
with open("{dumped_result}", "w", encoding="utf-8") as f:
import sys
with open(R"{dumped_result}", "w", encoding="utf-8") as f:
json.dump({{"executable": sys.executable, "paths": sys.path}}, f)
exit(0)
bpy.ops.wm.quit_blender()
""".strip(),
encoding="utf-8",
)
Expand Down

0 comments on commit 482534e

Please sign in to comment.