Constants in uppercase
This commit is contained in:
@@ -79,7 +79,7 @@ class AudioPlayer(QObject):
|
||||
def set_audio_player(self, fname = ""):
|
||||
self.__first_call = True
|
||||
self.__reset_audio_widget()
|
||||
full_name = os.path.join(Constants.data_folder, Constants.audio_folder, fname + '.ogg')
|
||||
full_name = os.path.join(Constants.DATA_FOLDER, Constants.AUDIO_FOLDER, fname + '.ogg')
|
||||
if os.path.exists(full_name):
|
||||
self.__play.setEnabled(True)
|
||||
self.__audio_file = full_name
|
||||
|
||||
Reference in New Issue
Block a user