abs-path instead relative, cleanup code

This commit is contained in:
2024-09-25 07:20:57 +02:00
parent 3a0367073e
commit 457ea0e675
4 changed files with 13 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
import logging
_log = logging.getLogger(__name__)
import math
import math, os.path
from time import sleep
from PyQt5.QtCore import Qt, pyqtSignal
from PyQt5.QtGui import QPainter, QBrush, QColor, QPainterPath, QPen, QDoubleValidator
@@ -10,8 +10,7 @@ from PyQt5.uic import loadUiType
from epics import Motor
from app_utils import assert_tweaker_positions
Ui_MotorTweak, QWidget = loadUiType('epics_widgets/MotorTweak.ui')
Ui_MotorTweak, QWidget = loadUiType(os.path.join(os.path.dirname(__file__),'MotorTweak.ui'))
SPMG_STOP = 0
SPMG_PAUSE = 1
SPMG_MOVE = 2