NebraLtd / hm-gwmfr

Secure Element Provisioning Container
MIT License
2 stars 4 forks source link

fix: use different touch method #19

Closed marvinmarnold closed 3 years ago

marvinmarnold commented 3 years ago

~Going to test on a device before converting from draft.~ Tested and working.

Why Was getting an error when trying to touch a file with pathlib, ModuleNotFoundError: No module named 'pathlib'. Because pathlib is not included in python3-minimal.

How Use open().

References Fixes: https://github.com/NebraLtd/hm-gwmfr/pull/18 New method: https://stackoverflow.com/questions/12654772/create-empty-file-using-python/12654798 Old method: https://stackoverflow.com/questions/1158076/implement-touch-using-python