mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 12:20:14 +01:00
Multiple extra data
This commit is contained in:
@@ -7,9 +7,9 @@ import sys
|
||||
__all__ = ['main']
|
||||
|
||||
|
||||
def directory(path):
|
||||
if not os.path.isdir(path):
|
||||
raise argparse.ArgumentTypeError("Not a directory: {}".format(path))
|
||||
def exists(path):
|
||||
if not os.path.exists(path):
|
||||
raise argparse.ArgumentTypeError("could not find: {}".format(path))
|
||||
return os.path.abspath(path)
|
||||
|
||||
def main():
|
||||
@@ -78,8 +78,8 @@ def main():
|
||||
help='force pip in-tree-build',
|
||||
action='store_true',
|
||||
default=False)
|
||||
build_app_parser.add_argument('-x', '--extra-files', type=directory,
|
||||
help='path to directory containing extra files to be baked in')
|
||||
build_app_parser.add_argument('-x', '--extra-data', type=exists,
|
||||
help='extra application data (bundled under $APPDIR/)', nargs='+')
|
||||
|
||||
list_parser = subparsers.add_parser('list',
|
||||
description='List Python versions installed in a manylinux image')
|
||||
|
||||
Reference in New Issue
Block a user