obsidian-execute-code icon indicating copy to clipboard operation
obsidian-execute-code copied to clipboard

Relative Python path in tool configuration

Open kannesito opened this issue 1 year ago • 2 comments

I installed a portable Python, placed it within the vault directory but cannot set the interpreter path relatively. Would it be possible to add this as a feature, that the python path in the config form for example to ./portable_python/python.exe (instead of "c:\users\me...\portable_python/python.exe)? That would be amazing and make the whole Obsidian vault straight-forwardly portable, if it is transferred e.g. to another person's computer!

kannesito avatar Jan 30 '24 13:01 kannesito

Sure, thats a good idea!

(But I dont know when it will be implemented)

twibiral avatar Jan 30 '24 21:01 twibiral

This is exactly what I was thinking today haha. Do you think it would be easier to add a special variable like {{vault_path}}? Instead of writing /path/to/vault/portable_python/python.exe one could write {{vault_path}}/portable_python/python.exe. But I don't know if that would make things easier or not.

Hisiste avatar Jan 31 '24 01:01 Hisiste