intent: How to reliably open a file in the same directory as a Python script
rewritten_intent: open a file 'bundled-resource.jpg' in the same directory as a python script
snippet: f = open(os.path.join(__location__, 'bundled-resource.jpg'))