twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.09k stars 66 forks source link

Relative Python path in tool configuration #328

Open kannesito opened 8 months ago

kannesito commented 8 months ago

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!

twibiral commented 8 months ago

Sure, thats a good idea!

(But I dont know when it will be implemented)

Hisiste commented 8 months ago

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.