mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
Update Python
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
## Requirements
|
||||
|
||||
- [Python 3.x](https://www.python.org/downloads)
|
||||
- [Pythonnet 3.x](https://github.com/pythonnet/pythonnet)
|
||||
- `pip install git+https://github.com/pythonnet/pythonnet`
|
||||
- [Pythonnet 3.x](https://github.com/pythonnet/pythonnet): `pip install pythonnet`
|
||||
- [.NET 6.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
|
||||
- [UVtools](https://github.com/sn4k3/UVtools/releases/latest):
|
||||
- Windows: Must install MSI
|
||||
@@ -17,8 +16,9 @@
|
||||
- Near your .py script:
|
||||
- [UVtoolsBootstrap.py](https://github.com/sn4k3/UVtools/blob/master/Scripts/UVtools.Python/UVtoolsBootstrap.py)
|
||||
`wget https://github.com/sn4k3/UVtools/blob/master/Scripts/UVtools.Python/UVtoolsBootstrap.py`
|
||||
- [UVtools.runtimeconfig.json](https://github.com/sn4k3/UVtools/blob/master/Scripts/UVtools.Python/UVtools.runtimeconfig.json)
|
||||
<!-- - [UVtools.runtimeconfig.json](https://github.com/sn4k3/UVtools/blob/master/Scripts/UVtools.Python/UVtools.runtimeconfig.json)
|
||||
`wget https://github.com/sn4k3/UVtools/blob/master/Scripts/UVtools.Python/UVtools.runtimeconfig.json`
|
||||
!-->
|
||||
|
||||
## Bootstrap
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"tfm": "net6.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "6.0.3"
|
||||
"version": "6.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,8 +33,8 @@ if UVTOOLS_PATH is None or not os.path.exists(UVTOOLS_PATH):
|
||||
# Don't touch
|
||||
# Set runtime
|
||||
sys.path.append(UVTOOLS_PATH)
|
||||
rt = get_coreclr(r"UVtools.runtimeconfig.json")
|
||||
set_runtime(rt)
|
||||
import pythonnet
|
||||
pythonnet.load("coreclr")
|
||||
import clr
|
||||
|
||||
clr.AddReference(r"UVtools.Core")
|
||||
|
||||
Reference in New Issue
Block a user