clockworkpi / launcher

The launcher for GameShell
GNU General Public License v3.0
332 stars 79 forks source link

pygame font extract from relative path #298

Open arthurlutz opened 4 years ago

arthurlutz commented 4 years ago
python sys.py/run.py 
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
../skin/default/truetype/VarelaRound-Regular.ttf
Traceback (most recent call last):
  File "sys.py/run.py", line 39, in <module>
    from UI.page         import PageStack,PageSelector,Page
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/page.py", line 22, in <module>
    from icon_pool import MyIconPool
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/icon_pool.py", line 9, in <module>
    from skin_manager import MySkinManager
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 163, in <module>
    InitMySkinManager()
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 160, in InitMySkinManager
    MySkinManager = SkinManager()
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 30, in __init__
    self.Init()
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 41, in Init
    self.SetFonts()
  File "/home/arthur/local/clockworkpi/launcher/sys.py/UI/skin_manager.py", line 56, in SetFonts
    self._Fonts["varela%d"%i] = pygame.font.Font(fonts_path["varela"],i)
IOError: [Errno 2] No such file or directory: '../skin/default/truetype/VarelaRound-Regular.ttf'