Added application profiles to the setup.py

Otherwise local lookups for application specific profiles will break/be missing.
This commit is contained in:
Anton Hvornum 2020-12-06 12:37:51 +01:00
parent 5a07b22606
commit 7764804d4c
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ def list_profiles(filter_irrelevant_macs=True, subpath=''):
for PATH_ITEM in storage['PROFILE_PATH']:
import time
print('Walking:', os.path.abspath(os.path.expanduser(PATH_ITEM+subpath)))
time.sleep(10)
time.sleep(3)
for root, folders, files in os.walk(os.path.abspath(os.path.expanduser(PATH_ITEM+subpath))):
for file in files:
if os.path.splitext(file)[1] == '.py':

View File

@ -23,5 +23,5 @@ setuptools.setup(
],
python_requires='>=3.8',
setup_requires=['wheel'],
package_data={'archinstall': glob.glob('examples/*.py') + glob.glob('profiles/*.py')},
package_data={'archinstall': glob.glob('examples/*.py') + glob.glob('profiles/*.py') + glob.glob('profiles/applications/*.py')},
)