Merge pull request #193 from SecurityWaffle/master

Fixes defaults.yml bugs listed in #191
This commit is contained in:
evilsocket 2019-10-06 21:23:48 +02:00 committed by GitHub
commit ff6b4f6a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-C', '--config', action='store', dest='config',
default=os.path.join(os.path.abspath(os.path.dirname(pwnagotchi.__file__)), '/defaults.yml'),
default=os.path.join(os.path.dirname(pwnagotchi.__file__), 'defaults.yml'),
help='Main configuration file.')
parser.add_argument('-U', '--user-config', action='store', dest='user_config', default='/etc/pwnagotchi/config.yml',
help='If this file exists, configuration will be merged and this will override default values.')

View File

@ -18,7 +18,8 @@ setup(name='pwnagotchi',
license='GPL',
install_requires=required,
scripts=['bin/pwnagotchi'],
package_data={'pwnagotchi': ('pwnagotchi/defaults.yml',)},
package_data={'pwnagotchi': ['defaults.yml', 'pwnagotchi/defaults.yml']},
include_package_data=True,
packages=find_packages(),
classifiers=[
'Programming Language :: Python :: 3',