mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-09 01:52:32 +02:00
c3c952bd26
- **Benchmark tool:** - (Add) Reference machine Intel® Core™ i9-13900K @ 5.5 GHz - (Improvement) Layout and arrangement - **Windows MSI:** - (Improvement) Move registry keys from HKCU to HKLM - (Improvement) Sign MSI package - (Upgrade) Windows MSI: Wix 3 to 4 - (Fix) SL1: Change `SupportPillarWideningFactor` from ushort to float - (Fix) PCB exposure: Implement G02 and G03 arcs (#692) - (Upgrade) .NET from 6.0.15 to 6.0.16 - (Upgrade) openCV from 4.6.0 to 4.7.0
56 lines
1.7 KiB
Python
56 lines
1.7 KiB
Python
#!/usr/bin/env python
|
|
"""
|
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
Version 3, 19 November 2007
|
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
Everyone is permitted to copy and distribute verbatim copies
|
|
of this license document, but changing it is not allowed.
|
|
"""
|
|
import sys
|
|
import platform
|
|
import os
|
|
|
|
UVTOOLS_PATH = None
|
|
if platform.system() == 'Windows':
|
|
try:
|
|
import winreg
|
|
|
|
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r'Software\UVtools', 0, winreg.KEY_READ)
|
|
UVTOOLS_PATH = winreg.QueryValueEx(key, 'InstallDir')[0]
|
|
if key:
|
|
winreg.CloseKey(key)
|
|
except:
|
|
pass
|
|
else:
|
|
UVTOOLS_PATH = os.getenv('UVTOOLS_PATH')
|
|
|
|
if UVTOOLS_PATH is None or not os.path.exists(UVTOOLS_PATH):
|
|
print("Unable to find UVtools path, please install and register the path with a Environment Variable (UVTOOLS_PATH)")
|
|
exit(-1)
|
|
|
|
# Don't touch
|
|
# Set runtime
|
|
sys.path.append(UVTOOLS_PATH)
|
|
import pythonnet
|
|
pythonnet.load("coreclr")
|
|
import clr
|
|
|
|
clr.AddReference(r"UVtools.Core")
|
|
from UVtools.Core import *
|
|
from UVtools.Core.EmguCV import *
|
|
from UVtools.Core.Extensions import *
|
|
from UVtools.Core.FileFormats import *
|
|
from UVtools.Core.GCode import *
|
|
from UVtools.Core.Layers import *
|
|
from UVtools.Core.Managers import *
|
|
from UVtools.Core.MeshFormats import *
|
|
from UVtools.Core.Network import *
|
|
from UVtools.Core.Objects import *
|
|
from UVtools.Core.Operations import *
|
|
from UVtools.Core.PixelEditor import *
|
|
from UVtools.Core.Printer import *
|
|
from UVtools.Core.Scripting import *
|
|
from UVtools.Core.Suggestions import *
|
|
from UVtools.Core.SystemOS import *
|
|
|
|
print(f'{About.SoftwareWithVersionArch}') |