Python Open File en relación con el módulo

import os

TEST_FILENAME = os.path.join(os.path.dirname(__file__), 'test.txt')
Good Goshawk