Skip to content

Commit 2b9f5fc

Browse files
committed
qtvcp -add vismach obj files to search, change path from debug to info
Copy dialog needs to know the vimach object files are present. In info mode it is useful to know where the handler/ui files are.
1 parent 230da9c commit 2b9f5fc

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

lib/python/qtvcp/qt_pstat.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def set_paths(self, filename='dummy', isscreen=False):
126126
LOG.debug("Checking for default handler file in: yellow<{}>".format(default_handler_path))
127127
if os.path.exists(default_handler_path):
128128
self.HANDLER = default_handler_path
129-
LOG.debug("Using DEFAULT handler file path: yellow<{}>".format(self.HANDLER))
129+
LOG.info("Using DEFAULT handler file path: yellow<{}>".format(self.HANDLER))
130130
else:
131131
self.HANDLER = None
132132
LOG.info("No handler file found.")
@@ -158,7 +158,7 @@ def set_paths(self, filename='dummy', isscreen=False):
158158
else:
159159
LOG.debug("Checking for .ui in: yellow<{}>".format(defaultui))
160160
if os.path.exists(defaultui):
161-
LOG.debug("Using DEFAULT ui file from: yellow<{}>".format(defaultui))
161+
LOG.info("Using DEFAULT ui file from: yellow<{}>".format(defaultui))
162162
self.XML = defaultui
163163
else:
164164
# error
@@ -363,7 +363,7 @@ def find_embed_panel_path(self, name):
363363
else:
364364
LOG.debug("(embed) Checking for .ui in: yellow<{}>".format(defaultui))
365365
if os.path.exists(defaultui):
366-
LOG.debug("(embed) Using DEFAULT ui file from: yellow<{}>".format(defaultui))
366+
LOG.info("(embed) Using DEFAULT ui file from: yellow<{}>".format(defaultui))
367367
XML = defaultui
368368
return XML
369369
else:
@@ -393,7 +393,7 @@ def find_embed_handler_path(self, name):
393393
LOG.debug("(embed) Checking for default handler file in: yellow<{}>".format(default_handler_path))
394394
if os.path.exists(default_handler_path):
395395
HANDLER = default_handler_path
396-
LOG.debug("(embed) Using DEFAULT handler file path: yellow<{}>".format(HANDLER))
396+
LOG.info("(embed) Using DEFAULT handler file path: yellow<{}>".format(HANDLER))
397397
return HANDLER
398398
else:
399399
HANDLER = None
@@ -414,4 +414,8 @@ def find_vismach_files(self):
414414
if file.endswith(".py"):
415415
if not file in ('__init__.py', 'qt_vismach.py', 'primitives.py'):
416416
tmp.append(file)
417+
elif os.path.isdir(os.path.join(self.VISMACHDIR, file)):
418+
if 'obj' in file:
419+
tmp.append(file)
420+
417421
return tmp

0 commit comments

Comments
 (0)