__module_dir__ = os.path.join(__lib_dir__, 'cr_tf')
__init_py__ = os.path.join(__module_dir__, '__init__.py')
__postinst_scriptdir__ = pathlib.Path(__base_dir__) / 'postinstall-scripts'
+__keys_dir__ = pathlib.Path(__base_dir__) / 'keys'
PATHS = {
'__base_dir__': __base_dir__,
if __pi_scripts__:
__data_files__.append(('postinstall-scripts', __pi_scripts__))
+__keys__ = []
+for f in __keys_dir__.glob('*'):
+ if f.is_file() and os.access(str(f), os.R_OK):
+ relpath = os.path.relpath(str(f), __base_dir__)
+ __keys__.append(relpath)
+if __keys__:
+ __data_files__.append(('keys', __keys__))
+
# print("Found data files:\n" + pp(__data_files__) + "\n")