]>
git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blob - helpers/__init__.py
0f819e793653744983f99702daef11df9a51af60
1 # -*- coding: utf-8 -*-
6 if getattr(sys
, 'frozen', False):
7 return sys
._MEIPASS
+ "/"
9 path
= os
.path
.dirname(os
.path
.realpath(__file__
))
12 def duration_to_min_sec(duration
):
13 minutes
= int(duration
/ 60)
14 seconds
= int(duration
) % 60
16 return "{:2}:{:0>2}".format(minutes
, seconds
)
18 return "{}:{:0>2}".format(minutes
, seconds
)