From: Chris M. <gi...@gi...> - 2017-02-19 22:08:10
|
qtscreen -fix long path name error for VCP panels a long path name was not clipped properly causing errors when makinh HAL components Signed-off-by: Chris Morley <chr...@ho...> Signed-off-by: chris morley <chr...@ho...> http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=b532694 --- src/emc/usr_intf/qtscreen/qtscreen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/emc/usr_intf/qtscreen/qtscreen.py b/src/emc/usr_intf/qtscreen/qtscreen.py index 5f61008..64f7823 100644 --- a/src/emc/usr_intf/qtscreen/qtscreen.py +++ b/src/emc/usr_intf/qtscreen/qtscreen.py @@ -39,8 +39,9 @@ def dbg(str): class Paths(): def __init__(self,filename): - self.BASENAME = os.path.splitext(filename)[0] - self.VCP_UI = '%s.ui'% self.BASENAME + self.BASENAME = os.path.splitext(os.path.basename(filename))[0] + print self.BASENAME + self.VCP_UI = '%s.ui'% os.path.splitext(filename)[0] self.VCP_HANDLER = '%s_handler.py'% self.BASENAME if not os.path.exists(self.VCP_HANDLER): self.VCP_HANDLER = None |