import os version = os.path.join(os.path.split(__file__)[0], 'version.txt') if os.path.exists(version): execfile(version) del os del version