Merge pull request #2084 from Jackwaterveg/develop_fix

[CLI] fix 'print log' in cli
pull/2091/head
TianYuan 4 years ago committed by GitHub
commit 1ce7bfef99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -99,7 +99,7 @@ class Log():
_call_from_cli = False _call_from_cli = False
_frame = inspect.currentframe() _frame = inspect.currentframe()
while _frame: while _frame:
if 'paddlespeech/cli/__init__.py' in _frame.f_code.co_filename or 'paddlespeech/t2s' in _frame.f_code.co_filename: if 'paddlespeech/cli/entry.py' in _frame.f_code.co_filename or 'paddlespeech/t2s' in _frame.f_code.co_filename:
_call_from_cli = True _call_from_cli = True
break break
_frame = _frame.f_back _frame = _frame.f_back

Loading…
Cancel
Save