---
def _updateBackgroundAudio(self, song, item): song.media_files = []
for i, bga in enumerate(item.background_audio): dest_file = os.path.join( AppLocation.get_section_data_path(self.plugin.name), u'audio', str(song.id), os.path.split(bga)[1]) check_directory_exists(os.path.split(dest_file)[0]) shutil.copyfile(os.path.join( AppLocation.get_section_data_path( u'servicemanager'), bga), #ERROR: Should be this? os.path.split(bga)[1]), dest_file)
---
It should be copyfile(file from servicemanager path to dest_file), right?
OpenLPPortable2 04\App\ OpenLP\ plugins\ songs\lib\ mediaitem. py
--- ndAudio( self, song, item):
song.media_ files = [] item.background _audio) :
dest_ file = os.path.join(
AppLocation. get_section_ data_path( self.plugin. name),
u'audio' , str(song.id), os.path. split(bga) [1])
check_ directory_ exists( os.path. split(dest_ file)[0] )
shutil. copyfile( os.path. join(
AppLocation. get_section_ data_path(
u' servicemanager' ), bga), #ERROR: Should be this? os.path. split(bga) [1]),
dest_ file)
def _updateBackgrou
for i, bga in enumerate(
---
It should be copyfile(file from servicemanager path to dest_file), right?