patman: Don't run patman when it is imported as a module
Commit 488d19cb (patman: add distutils based installer) has the side effect of making patman run twice with each invocation. Fix this by checking for 'main program' invocation in patman.py. This is good practice in any case. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NChris Packham <judge.packham@gmail.com>
Showing
想要评论请 注册 或 登录