-from os.path import dirname, exists
+from os.path import dirname, exists, basename
from platform import system
from glob import glob
from pathlib import Path
def _on_frame(self, task):
if self._music.status() == AudioSound.READY:
- files = glob(self.curr_path + 'assets/audio/music/*.ogg')
- files.remove(self.curr_path + 'assets/audio/music/' + self._music.get_name())
+ oggs = Filename(self.curr_path + 'assets/audio/music/*.ogg').to_os_specific()
+ files = glob(oggs)
+ rm_music = Filename(self.curr_path + 'assets/audio/music/' + basename(self._music.get_name())).to_os_specific()
+ # basename is needed in windows
+ files.remove(rm_music)
self._start_music(files)
return task.cont
- [X] save-restore options
- [X] code
- [X] appimage
+ - [X] windows
- [ ] flatpak
- - [ ] windows
- [ ] itchio
- [ ] versions
** READY management of error and success (upload builds, itch.io)
# '/home/flavio/.config/itch/apps/pmachines/pmachines --functional-test 2',
# str(Path.home()) + '/.local/share/pmachines/tests/functional/')
- # def test_windows(self):
- # info('test_windows')
- # system('pkill -f "pmachines.exe"')
- # abspath = str(Path(__file__).parent.parent) + '/build/win_amd64/pmachines.exe'
- # self.__test_template(
- # 'timeout 720s wine %s --functional-test 1 ; '
- # 'timeout 720s wine %s --functional-test 2' % (abspath, abspath),
- # str(Path.home()) + '/.wine/drive_c/users/flavio/AppData/Local/pmachines/tests/functional/')
+ def test_windows(self):
+ info('test_windows')
+ system('pkill -f "pmachines.exe"')
+ abspath = str(Path(__file__).parent.parent) + '/build/win_amd64/pmachines.exe'
+ self.__test_template(
+ 'timeout 720s wine %s --functional-test 1 ; '
+ 'timeout 720s wine %s --functional-test 2' % (abspath, abspath),
+ str(Path.home()) + '/.wine/drive_c/users/flavio/AppData/Local/pmachines/tests/functional/')
# def test_versions(self):
# info('test_versions')