Merge pull request #193 from SecurityWaffle/master
Fixes defaults.yml bugs listed in #191
This commit is contained in:
commit
ff6b4f6a52
@ -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.')
|
||||
|
3
setup.py
3
setup.py
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user