Sailor5
November 27th, 2010, 11:52 PM
Ahoy Sailors!
So I'm developing some Python built software intended for public use. The user will input some preferences which are saved in the Py2Exe built exe as a text resource. Now we're just needed to get the executable to find in itself the stored preferences.
The stored data is in between some tags
<0161ENTEREDDATA0161>The way I've tried is to get the file to open a handle to itself and use find() to look for these tags and attempt to extract the data. For some unknown reason the script I made using this method didn't work.
Can anyone give an example of how to read text from a resource in a file?
Thanks bye!
So I'm developing some Python built software intended for public use. The user will input some preferences which are saved in the Py2Exe built exe as a text resource. Now we're just needed to get the executable to find in itself the stored preferences.
The stored data is in between some tags
<0161ENTEREDDATA0161>The way I've tried is to get the file to open a handle to itself and use find() to look for these tags and attempt to extract the data. For some unknown reason the script I made using this method didn't work.
Can anyone give an example of how to read text from a resource in a file?
Thanks bye!