示例#1
0
文件: console.py 项目: rrfenton/Ice
 def icon_path(self):
     """
     Should return the path to the icon for the given console. This icon
     should be located in the resources/images/icons directory, and should
     be named the same as the emulator shortname with a .png extension
     """
     icon_filename = self.shortname + ".png"
     return os.path.join(filesystem_helper.icons_directory(),icon_filename)
示例#2
0
 def test_icon_path(self):
     """
     The icon path for a console should be in the icons directory, and the
     file should be named the shortname of the console with a .png extension
     """
     gba_path = self.console.icon_path()
     self.assertEqual(os.path.dirname(gba_path),filesystem_helper.icons_directory())
     self.assertEqual(os.path.basename(gba_path),self.console.shortname + ".png")
示例#3
0
文件: console.py 项目: rrfenton/Ice
 def icon_path(self):
     """
     Should return the path to the icon for the given console. This icon
     should be located in the resources/images/icons directory, and should
     be named the same as the emulator shortname with a .png extension
     """
     icon_filename = self.shortname + ".png"
     return os.path.join(filesystem_helper.icons_directory(), icon_filename)
示例#4
0
 def test_icon_path(self):
     """
     The icon path for a console should be in the icons directory, and the
     file should be named the shortname of the console with a .png extension
     """
     gba_path = self.console.icon_path()
     self.assertEqual(os.path.dirname(gba_path),
                      filesystem_helper.icons_directory())
     self.assertEqual(os.path.basename(gba_path),
                      self.console.shortname + ".png")