Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit c470a5b

Browse files
committed
added migration docs
1 parent 287c795 commit c470a5b

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,14 @@ You have the ability to change the default python script location in settings. A
9393
## Debugging
9494

9595
If your script fails to run. An error is shown in the top right of obsidian and in the *developer console* which can be found with the following hotkeys: "ctrl" + "shift" + "i" on Windows, or "cmd" + "option" + "i" on MacOS.
96+
97+
## 1.1.x Migration
98+
99+
If you are upgrading the 1.1.x, the changes from 1.0.x are breaking.
100+
- You can set the script base path in settings, but it must be from the root of the vault, .obsidian/scripts is default:
101+
![alt text](assets/scripts_folder_path.png)
102+
- You have to set the python interperter (or other interpreter manually for each script)
103+
![alt text](assets/interpreter.png)
104+
- You have to set the run method manually for each script
105+
![alt text](assets/run_type.png)
106+

assets/interpreter.png

25 KB
Loading

assets/run_type.png

35.2 KB
Loading

assets/scripts_folder_path.png

23.3 KB
Loading

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "python-scripter",
33
"name": "Python Scripter",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"minAppVersion": "0.15.0",
66
"description": "Run Python scripts directly as Obsidian commands.",
77
"author": "Nick Allison",

src/settings/scriptSettingsTab.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export class ScriptSettingsTab extends PluginSettingTab {
137137
new Notice(`Script "${selectedScript}" added.`);
138138
this.plugin.log(`Script "${selectedScript}" added to settings.`, 'verbose');
139139
this.display(); // Refresh the settings tab
140+
140141
} else {
141142
this.plugin.log(`Script "${selectedScript}" already exists in settings.`, 'verbose');
142143
}

0 commit comments

Comments
 (0)