How to reliably open a file in the same directory as a Python script,print(os.path.dirname(os.path.abspath(sys.argv[0])))