This commit is contained in:
germano 2023-02-17 21:19:30 +01:00
parent b3e48493a3
commit 08375855a9
5 changed files with 14 additions and 6 deletions

View File

@ -2,7 +2,7 @@ set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
echo sLinkFile = "%USERPROFILE%\Desktop\AVVIO PROGRAMMA COLLAUDO.lnk" >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = "%userprofile%\PycharmProjects\st-ten-1\runme.sh" >> %SCRIPT%
echo oLink.TargetPath = "%userprofile%\PycharmProjects\st-ten-1\runme.bat" >> %SCRIPT%
echo oLink.IconLocation = "%userprofile%\PycharmProjects\st-ten-1\src\ui\imgs\neo.ico"
echo oLink.Save >> %SCRIPT%
cscript /nologo %SCRIPT%

4
runme.bat Normal file
View File

@ -0,0 +1,4 @@
echo on
SET mypath=%~dp0
cd %mypath%
.\venv\Scripts\activate.bat && python -O "./src/main.py" --no-edgetpu --no-tflite

View File

@ -12,14 +12,14 @@ is_win = platform.system() == "Windows"
if "--sim-io" not in sys.argv:
if is_win:
from Automation.BDaq import *
from Automation.BDaq.InstantDoCtrl import InstantDoCtrl
from Automation.BDaq.InstantDiCtrl import InstantDiCtrl
from components.Automation.BDaq import *
from components.Automation.BDaq.InstantDoCtrl import InstantDoCtrl
from components.Automation.BDaq.InstantDiCtrl import InstantDiCtrl
else:
libbiodaq = ctypes.CDLL("/opt/advantech/libs/libbiodaq.so")
else:
is_win=False
import src.components.dummies.libbiodaq as libbiodaq
import components.dummies.libbiodaq as libbiodaq
class USB_586x(Component):

View File

@ -3,6 +3,7 @@ import argparse
import faulthandler
import logging
import os
import platform
# import pdb
import signal
import sys
@ -11,6 +12,9 @@ import weakref
from datetime import datetime
from pathlib import Path
if platform.system() == "Windows":
sys.path.append(f"{os.getcwd()}\src\components")
from components.usb_586x import USB_586x
app = None

View File

@ -5,7 +5,7 @@ import weakref
from PyQt5.QtWidgets import QMessageBox
from ui.test_test import Test_Test
from src.components.Automation.BDaq import ErrorCode
from components.Automation.BDaq import ErrorCode
class Test_Leak(Test_Test):
def __init__(self, components=None, recipe=None, step=None, pieces=None, run_once=False, reset_on_start=True, enable_override=True):