From 9099529403eaa80f38ec82fca421912b80e5a1a8 Mon Sep 17 00:00:00 2001 From: locpham Date: Sat, 8 Aug 2026 15:56:34 +0000 Subject: [PATCH] FIX: engine.spec dung os thay _os (NameError luc build) --- engine.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine.spec b/engine.spec index 1133b37..fbce929 100644 --- a/engine.spec +++ b/engine.spec @@ -56,13 +56,13 @@ datas += collect_data_files('librosa', includes=['**/*.pyi']) import importlib.util as _ilu import glob as _glob _scipy_spec = _ilu.find_spec('scipy') -_scipy_dir = _os.path.dirname(_os.path.abspath(_scipy_spec.origin)) +_scipy_dir = os.path.dirname(os.path.abspath(_scipy_spec.origin)) _scipy_hidden = [] for _ext in ('*.py', '*.pyd', '*.so'): - for _f in _glob.glob(_os.path.join(_scipy_dir, '**', _ext), recursive=True): - _rel = _os.path.relpath(_f, _scipy_dir) - _base = _os.path.basename(_rel).split('.')[0] # bo .cpython-312-x86_64... .so - _pkg = _os.path.dirname(_rel).replace(_os.sep, '.') + for _f in _glob.glob(os.path.join(_scipy_dir, '**', _ext), recursive=True): + _rel = os.path.relpath(_f, _scipy_dir) + _base = os.path.basename(_rel).split('.')[0] # bo .cpython-312-x86_64... .so + _pkg = os.path.dirname(_rel).replace(os.sep, '.') _mod = ('scipy.' + _pkg + '.' + _base) if _pkg else ('scipy.' + _base) if _mod not in _scipy_hidden: _scipy_hidden.append(_mod)