mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
buildman: Use importlib to find the help
Use this function so that the help can be found even when buildman is running from a package. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8dd7be7e28
commit
d85f7909f8
1 changed files with 3 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
|||
#
|
||||
|
||||
import multiprocessing
|
||||
import importlib.resources
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
|
@ -152,9 +153,8 @@ def DoBuildman(options, args, toolchains=None, make_func=None, brds=None,
|
|||
global builder
|
||||
|
||||
if options.full_help:
|
||||
tools.print_full_help(
|
||||
os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])),
|
||||
'README.rst'))
|
||||
with importlib.resources.path('buildman', 'README.rst') as readme:
|
||||
tools.print_full_help(str(readme))
|
||||
return 0
|
||||
|
||||
gitutil.setup()
|
||||
|
|
Loading…
Add table
Reference in a new issue