twibiral / obsidian-execute-code

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

feat: have %USERNAME% be usable for python path #352

Closed raffy8361 closed 4 months ago

raffy8361 commented 4 months ago

This commit updates python path to be more flexible by replacing instances of %USERNAME% with the actual user of the PC. Instead of typing C:/Users/user/AppData/Local/Programs/Python/Python311/python.exe, one could use C:/Users/%USERNAME%/AppData/Local/Programs/Python/Python311/python.exe.

Useful for those who use multiple devices (that do not have the same name for whatever reason) synced through OneDrive or something similar.

twibiral commented 4 months ago

That's a cool idea, thank you!

Maybe it would be interesting to implement this for more languages => #355

twibiral commented 4 months ago

Published in release version 1.12.0