diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/packagetesting/testwheel.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/packagetesting/testwheel.py b/scripts/packagetesting/testwheel.py index d7f225a..9aad708 100644 --- a/scripts/packagetesting/testwheel.py +++ b/scripts/packagetesting/testwheel.py @@ -269,9 +269,12 @@ if __name__ == "__main__": formatter_class=RawTextHelpFormatter) parser.add_argument('--no-pyinstaller', '-p', action='store_true', help='Skip pyinstaller test') + parser.add_argument("--examples", "-e", action="store", + help="Examples directory") options = parser.parse_args() do_pyinst = not options.no_pyinstaller + root_ex = Path(options.examples) if options.examples else None VERSION = get_pyside_version_from_import() if do_pyinst and sys.version_info[0] < 3: # Note: PyInstaller no longer supports Python 2 @@ -287,7 +290,8 @@ if __name__ == "__main__": else: root = p / 'PySide2' path_version = 2 - root_ex = root / 'examples' + if not root_ex: + root_ex = root / 'examples' break if VERSION[0] == 0: VERSION[0] == path_version |