diff --git a/kiauto/interposer.py b/kiauto/interposer.py index 573d408..51b2263 100644 --- a/kiauto/interposer.py +++ b/kiauto/interposer.py @@ -33,15 +33,18 @@ def check_interposer(args, logger, cfg): # Name of the interposer library - interposer_lib = os.path.abspath(os.path.join(os.path.dirname(__file__), 'interposer', 'libinterposer.so')) + machine = platform.machine().lower() + extra_name = '' if machine == 'x86_64' else '_'+machine + interposer_lib = os.path.abspath(os.path.join(os.path.dirname(__file__), 'interposer', f'libinterposer{extra_name}.so')) + logger.debug(f'Looking for interposer lib: {interposer_lib}') if (not os.path.isfile(interposer_lib) or # The lib isn't there args.disable_interposer or # The user disabled it os.environ.get('KIAUTO_INTERPOSER_DISABLE') or # The user disabled it using the environment - platform.system() != 'Linux' or 'x86_64' not in platform.platform()): # Not Linux 64 bits x86 + platform.system() != 'Linux'): # Not Linux interposer_lib = None else: os.environ['LD_PRELOAD'] = interposer_lib - logger.debug('** Using interposer: '+interposer_lib) + logger.debug('** Interposer lib found') cfg.use_interposer = interposer_lib cfg.enable_interposer = interposer_lib or args.interposer_sniff cfg.logger = logger diff --git a/kiauto/misc.py b/kiauto/misc.py index afa9b7c..1361ba7 100644 --- a/kiauto/misc.py +++ b/kiauto/misc.py @@ -68,6 +68,7 @@ def hide_stderr(): class Config(object): def __init__(self, logger, input_file=None, args=None, is_pcbnew=False): + logger.debug(f'KiAuto v{__version__}') self.export_format = 'pdf' self.is_pcbnew = is_pcbnew if input_file: