Python Gehen Sie einen mit Abspath zurück zurück

os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'templates'))
paul john