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 = argparse.ArgumentParser()
|
||||||
|
|
||||||
parser.add_argument('-C', '--config', action='store', dest='config',
|
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.')
|
help='Main configuration file.')
|
||||||
parser.add_argument('-U', '--user-config', action='store', dest='user_config', default='/etc/pwnagotchi/config.yml',
|
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.')
|
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',
|
license='GPL',
|
||||||
install_requires=required,
|
install_requires=required,
|
||||||
scripts=['bin/pwnagotchi'],
|
scripts=['bin/pwnagotchi'],
|
||||||
package_data={'pwnagotchi': ('pwnagotchi/defaults.yml',)},
|
package_data={'pwnagotchi': ['defaults.yml', 'pwnagotchi/defaults.yml']},
|
||||||
|
include_package_data=True,
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user