From 7a97b9c7a779aa7739e743770559ca7146ba6df3 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Tue, 9 Apr 2024 01:54:49 +0300 Subject: use namespace package in imports --- src/sliceitoff/player/life.py | 5 ++--- src/sliceitoff/player/player.py | 2 +- src/sliceitoff/player/static.py | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sliceitoff/player') diff --git a/src/sliceitoff/player/life.py b/src/sliceitoff/player/life.py index ef39869..16ba052 100644 --- a/src/sliceitoff/player/life.py +++ b/src/sliceitoff/player/life.py @@ -1,9 +1,8 @@ """ player.life - Hearth that will explode """ import pygame -from display import Scaling - -from text import get_letter_surface, ExplodingSprite +from sliceitoff.display import Scaling +from sliceitoff.text import get_letter_surface, ExplodingSprite class PieceOfHearth(ExplodingSprite): """ Eploding piece. Hearth consist of these """ diff --git a/src/sliceitoff/player/player.py b/src/sliceitoff/player/player.py index 82cc9a4..1d6ede7 100644 --- a/src/sliceitoff/player/player.py +++ b/src/sliceitoff/player/player.py @@ -2,7 +2,7 @@ import os import pygame -from display import Scaling +from sliceitoff.display import Scaling from .static import SLICER diff --git a/src/sliceitoff/player/static.py b/src/sliceitoff/player/static.py index 415f1cd..f965570 100644 --- a/src/sliceitoff/player/static.py +++ b/src/sliceitoff/player/static.py @@ -1,6 +1,7 @@ """ player.static - static data related to player - now just slicer """ from dataclasses import dataclass -from display import CGA_COLORS + +from sliceitoff.display import CGA_COLORS @dataclass class SLICER: -- cgit v1.2.3