Skip to content

Commit 7a12be5

Browse files
authored
Merge pull request #117 from dihm/pyside6_fix
Ignore PySide6 import objects in CWD when saving labscript files on compilation
2 parents 2145dbf + 8c5e165 commit 7a12be5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

labscript/labscript.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ def save_labscripts(hdf5_file):
404404
if getattr(module, '__file__', None) is not None:
405405
path = os.path.abspath(module.__file__)
406406
if path.startswith(prefix) and (path.endswith('.pyc') or path.endswith('.py')):
407+
if 'signature_bootstrap.py' in path or 'shibokensupport' in path:
408+
# ignore PySide6 shenaniganry
409+
continue
407410
path = path.replace('.pyc', '.py')
408411
save_path = 'labscriptlib/' + path.replace(prefix, '').replace('\\', '/').replace('//', '/')
409412
if save_path in hdf5_file:

0 commit comments

Comments
 (0)