mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
This partialy reverts commit c6db3f98bb.
The presets are case-sensitive, as explained in issue #110642.
12 lines
273 B
Python
12 lines
273 B
Python
import bpy
|
|
import platform
|
|
|
|
filepaths = bpy.context.preferences.filepaths
|
|
|
|
filepaths.text_editor_args = "-g $filepath:$line:$column"
|
|
|
|
match platform.system():
|
|
case "Windows":
|
|
filepaths.text_editor = "code.cmd"
|
|
case _:
|
|
filepaths.text_editor = "code"
|