Add Python installation and setup functionality

This commit is contained in:
kwaroran
2024-01-12 12:02:06 +09:00
parent 11ae0266d9
commit b4b461288d
5 changed files with 333 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
import SelectInput from "src/lib/UI/GUI/SelectInput.svelte";
import OptionInput from "src/lib/UI/GUI/OptionInput.svelte";
import Help from "src/lib/Others/Help.svelte";
import { installPython } from "src/ts/process/models/local";
</script>
<h2 class="text-2xl font-bold mt-2">{language.advancedSettings}</h2>
@@ -123,3 +124,12 @@
class="drop-shadow-lg p-3 border-borderc border-solid mt-6 flex justify-center items-center ml-2 mr-2 border-1 hover:bg-selected text-sm">
{language.ShowLog}
</button>
{#if $DataBase.tpo}
<button
on:click={async () => {
installPython()
}}
class="drop-shadow-lg p-3 border-borderc border-solid mt-6 flex justify-center items-center ml-2 mr-2 border-1 hover:bg-selected text-sm">
Test Python
</button>
{/if}