Update Python

This commit is contained in:
Tiago Conceição
2022-12-09 04:51:46 +00:00
parent 1da6f52013
commit ef4f67a16d
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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"
}
}
}
+2 -2
View File
@@ -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")