Hi all!
I am quite new to Snapcraft and I’m working on a simple python project. In my project I have a configure hook that creates a file in the $SNAP_DATA location. How would I read this created file from within my python script?
I’ve tried the following without success sadly:
snap_data = os.environ['SNAP_DATA']
config_file = open(str(snap_data) + "/config.txt", "r")
print(config_file)
Thank you in advance