import time import pyglet import os '''These are global variables for the whole kriya-helper ''' dir_path = os.path.dirname(os.path.realpath(__file__)) def beginning(): pyglet.resource.path = ['@asanas.sounds'] chime = pyglet.resource.media('starting_bell.wav', streaming=False) chime.play() def transition(): pyglet.resource.path = ['@asanas.sounds'] chime = pyglet.resource.media('kriya_chime.wav', streaming=False) breath = 0 chime.play() while breath != 1: time.sleep(11.2) breath += 1