From dad0415215537e19728419bca54e6487dd704378 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 7 Nov 2019 22:32:57 +0800 Subject: [PATCH] python: Fix filespec example in readme While the filespec example is technically correct, the more likely scenario is that the files to be omitted would be inside of a package subdirectory. This adds an example_package directory into the example to illustrate this case. Signed-off-by: Jeffery To --- lang/python/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/python/README.md b/lang/python/README.md index 94b2afaf6..4c241b82c 100644 --- a/lang/python/README.md +++ b/lang/python/README.md @@ -376,13 +376,13 @@ define PyPackage/python-example/filespec endef ``` -If there is an `examples` directory and `test_*.py` files that can be omitted to save space, this can be specified as: +If the package installs a `example_package` directory inside `PYTHON_PKG_DIR`, and there is an `examples` directory and `test_*.py` files that can be omitted to save space, this can be specified as: ``` define PyPackage/python-example/filespec +|$(PYTHON_PKG_DIR) --|$(PYTHON_PKG_DIR)/examples --|$(PYTHON_PKG_DIR)/test_*.py +-|$(PYTHON_PKG_DIR)/example_package/examples +-|$(PYTHON_PKG_DIR)/example_package/test_*.py endef ```