mirror of
https://github.com/gryf/fs-uae-wrapper.git
synced 2026-02-08 17:35:49 +01:00
Move from travis to gh actions
This commit is contained in:
@@ -4,7 +4,6 @@ Base class for all wrapper modules
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
from fs_uae_wrapper import utils
|
||||
@@ -325,6 +324,6 @@ class ArchiveBase(Base):
|
||||
for ext in ('.7z', '.lha', '.lzx', '.zip', '.rar', '.tar', '.tgz',
|
||||
'.tar.gz', '.tar.bz2', '.tar.xz'):
|
||||
if ((basename + ext).lower() == fname.lower() and
|
||||
basename == os.path.splitext(fname)[0]):
|
||||
basename == os.path.splitext(fname)[0]):
|
||||
return fname
|
||||
return None
|
||||
|
||||
@@ -20,7 +20,7 @@ class MessageGui(tkinter.Tk):
|
||||
# Display window without decorations
|
||||
self.wm_attributes('-type', 'splash')
|
||||
|
||||
self.frame = ttk.Frame(self, padding=5, borderwidth=0)
|
||||
self.frame = tkinter.ttk.Frame(self, padding=5, borderwidth=0)
|
||||
self.frame.grid()
|
||||
tkinter.ttk.Label(self.frame, text=msg, relief="ridge",
|
||||
padding=10).grid()
|
||||
|
||||
@@ -5,7 +5,6 @@ It will use compressed base image and compressed directories.
|
||||
"""
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from fs_uae_wrapper import base
|
||||
from fs_uae_wrapper import utils
|
||||
@@ -62,7 +61,6 @@ class Wrapper(base.ArchiveBase):
|
||||
"location.", base_image)
|
||||
return False
|
||||
|
||||
title = self._get_title()
|
||||
curdir = os.path.abspath('.')
|
||||
os.chdir(self.dir)
|
||||
result = utils.extract_archive(base_image)
|
||||
@@ -97,8 +95,8 @@ class Wrapper(base.ArchiveBase):
|
||||
icon_fname = None
|
||||
for fname in os.listdir(slave_path):
|
||||
if (fname.lower().endswith('.info') and
|
||||
os.path.splitext(slave_fname)[0].lower() ==
|
||||
os.path.splitext(fname)[0].lower()):
|
||||
os.path.splitext(slave_fname)[0].lower() ==
|
||||
os.path.splitext(fname)[0].lower()):
|
||||
icon_fname = fname
|
||||
break
|
||||
if icon_fname is None:
|
||||
|
||||
Reference in New Issue
Block a user