1. 簡介
- Enable User System Command Functions:開啟此功能
- Shell binary location:輸入
C:\\Windows\\System32\\cmd.exe
- 新增指令碼:指令碼名稱,指令碼程式碼
- 呼叫指令碼:
<% tp.user.指令碼名稱() %>
2. 更新
2.1. upload_db
- [[【TP模板】上傳屬性到資料-upload_db]]
"E:/Program Files/Python310/python.exe" "E:\Clouds\BaiduSyncdisk\NOB\.obsidian\db\python\上傳資料庫\upload_db.py" <% tp.file.path() %>
2.2. upload_cnbolgs
- [[【TP模板】上傳部落格園-upload_cnbolgs]]
"E:/Program Files/Python310/python.exe" "E:\Clouds\BaiduSyncdisk\NOB\.obsidian\db\python\上傳部落格園\upload.py" <% tp.file.path() %>
2.3. upload_yuque
- [[【TP模板】上傳語雀-upload_yuque]]
"E:/Program Files/Python310/python.exe" "E:\Clouds\BaiduSyncdisk\NOB\.obsidian\db\python\上傳語雀\upload_yuque.py" <% tp.file.path() %>
2.4. upload_smms
- [[【TP模板】上傳圖床-upload_smms]]
"E:/Program Files/Python310/python.exe" "E:\Clouds\BaiduSyncdisk\NOB\.obsidian\db\python\上傳smms\upload_smms.py"
3. 參考
- 如何在obsidian中呼叫python指令碼 - 知乎