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

View File

@@ -9,7 +9,7 @@
# simulated motor tweaks ui:
# same interface as MotorTweak and SmaractMotorTweaks, but mimes just a simulated motor
import logging
import logging,os.path
from time import sleep
from PyQt5.QtCore import Qt, pyqtSignal
from PyQt5.QtGui import QPainter, QBrush, QColor, QPainterPath, QPen, QDoubleValidator
@@ -17,7 +17,7 @@ from PyQt5.QtWidgets import QMenu, QInputDialog, QAction
from PyQt5.uic import loadUiType
from epics.ca import pend_event
Ui_MotorTweak, QWidget = loadUiType('epics_widgets/MotorTweak.ui')
Ui_MotorTweak, QWidget = loadUiType(os.path.join(os.path.dirname(__file__),'MotorTweak.ui'))
_log = logging.getLogger(__name__)
#logger.setLevel(logging.INFO)