fix case in file and module names
authorNiki Roo <niki@nikiroo.be>
Sun, 23 Mar 2025 18:30:08 +0000 (19:30 +0100)
committerNiki Roo <niki@nikiroo.be>
Sun, 23 Mar 2025 18:30:08 +0000 (19:30 +0100)
12 files changed:
Gamiki/Support/__init__.py [deleted file]
Gamiki/__init__.py [deleted file]
gamiki.py [moved from Main.py with 98% similarity]
gamiki/__init__.py [new file with mode: 0644]
gamiki/builder.py [moved from Gamiki/Builder.py with 97% similarity]
gamiki/game.py [moved from Gamiki/Game.py with 100% similarity]
gamiki/library.py [moved from Gamiki/Library.py with 94% similarity]
gamiki/support/__init__.py [new file with mode: 0644]
gamiki/support/support.py [moved from Gamiki/Support/Support.py with 96% similarity]
gamiki/support/support_dos.py [moved from Gamiki/Support/SupportDos.py with 96% similarity]
gamiki/support/support_gog.py [moved from Gamiki/Support/SupportGog.py with 97% similarity]
gamiki/support/support_win31.py [moved from Gamiki/Support/SupportWin31.py with 88% similarity]

diff --git a/Gamiki/Support/__init__.py b/Gamiki/Support/__init__.py
deleted file mode 100644 (file)
index 7e87dbd..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-from .Support      import Support
-from .SupportDos   import SupportDos
-from .SupportWin31 import SupportWin31
-from .SupportGog   import SupportGog
diff --git a/Gamiki/__init__.py b/Gamiki/__init__.py
deleted file mode 100644 (file)
index db34ecc..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-from .Library import Library
-from .Game    import Game
-from .Builder import Builder
-from .Support import Support
similarity index 98%
rename from Main.py
rename to gamiki.py
index 4cf8554e5a65b3f7ae5317ee02d934d143f30059..6c1d478b16489b0a3a99f942cf9f4c0f7647684b 100755 (executable)
--- a/Main.py
+++ b/gamiki.py
@@ -4,7 +4,7 @@ from argparse import ArgumentParser
 from os.path  import basename
 from sys      import stderr
 
-from Gamiki import Builder, Library
+from gamiki import Builder, Library
 
 parser = ArgumentParser(
     description="Game launcher and simple management system."
diff --git a/gamiki/__init__.py b/gamiki/__init__.py
new file mode 100644 (file)
index 0000000..e3d79ef
--- /dev/null
@@ -0,0 +1,4 @@
+from .library import Library
+from .game    import Game
+from .builder import Builder
+from .support import Support
similarity index 97%
rename from Gamiki/Builder.py
rename to gamiki/builder.py
index a9d747ab5151e216dbf0215311b173706823b81b..1f58394b27ed0b9e2cccd7ee38aa7adea3efba35 100644 (file)
@@ -1,7 +1,7 @@
 from pathlib import Path, PurePath
 
 from .        import Library, Game
-from .Support import Support, SupportDos, SupportWin31, SupportGog
+from .support import Support, SupportDos, SupportWin31, SupportGog
 
 class Builder:
     """Manage all the resources needed to run games."""
similarity index 100%
rename from Gamiki/Game.py
rename to gamiki/game.py
similarity index 94%
rename from Gamiki/Library.py
rename to gamiki/library.py
index af189e35e5bfcb81625aebb4d7b5e44733f755bb..0522b65b3b65721dffa7687f87c9d8b5945d8bdc 100644 (file)
@@ -1,7 +1,7 @@
 from pathlib import PurePath
 
-from .Support import Support
-from .Game    import Game
+from .support import Support
+from .game    import Game
 
 class Library(list[Game]):
     """Manage a library (a folder) of Games."""
diff --git a/gamiki/support/__init__.py b/gamiki/support/__init__.py
new file mode 100644 (file)
index 0000000..21f11f0
--- /dev/null
@@ -0,0 +1,4 @@
+from .support       import Support
+from .support_dos   import SupportDos
+from .support_win31 import SupportWin31
+from .support_gog   import SupportGog
similarity index 96%
rename from Gamiki/Support/Support.py
rename to gamiki/support/support.py
index 7e6d9209cbb6410b2356bb2b8c1b48414fb7cbaa..ab92571f6a0b605ec13108c186d22fb12564cb5d 100644 (file)
@@ -1,7 +1,7 @@
 from subprocess import run
 from shutil     import which
 
-from ..Game import Game
+from ..game import Game
 
 class Support:    
     programs: dict[str, str] = None
similarity index 96%
rename from Gamiki/Support/SupportDos.py
rename to gamiki/support/support_dos.py
index d9ac410fc42ee77b60954aeaecaffcdd89a86b15..9c676559ff5814112456df061c9f8460c2a1e98b 100644 (file)
@@ -1,8 +1,8 @@
 from subprocess import run
 from shutil     import which
 
-from .  import Support
-from .. import Game
+from .      import Support
+from ..game import Game
 
 class SupportDos(Support):
     """Supports DOS games via DosBox."""
similarity index 97%
rename from Gamiki/Support/SupportGog.py
rename to gamiki/support/support_gog.py
index bb353fcee443592f6f3b7f8ecc28da7e231a0c64..3e832cd5626bec6d3d2d6372ca198f521e6c1dc9 100644 (file)
@@ -5,8 +5,8 @@ from pathlib    import Path
 from subprocess import run
 from shutil     import which
 
-from .  import Support
-from .. import Game
+from .      import Support
+from ..game import Game
 
 class SupportGog(Support):
     """Supports GoG games via the 'games' docker or natively."""
similarity index 88%
rename from Gamiki/Support/SupportWin31.py
rename to gamiki/support/support_win31.py
index 0aa5749e9619ddfc70ace4ce4dc2503f1994368e..8fd07e951d6cf94bd028f152589451d795420c3a 100644 (file)
@@ -2,8 +2,8 @@ from pathlib    import PurePath
 from subprocess import run
 from shutil     import which
 
-from .  import Support, SupportDos
-from .. import Game
+from .      import Support, SupportDos
+from ..game import Game
 
 class SupportWin31(SupportDos):
     """Supports Windows 3.1 games via DosBox."""