twibiral/obsidian-execute-code

Relative Python path in tool configuration

Opened this issue · 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!

Sure, thats a good idea!

(But I dont know when it will be implemented)

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.