aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
commit2250b4db92bd272dbb1fd717eb791e293c17e37a (patch)
tree0bde7ed8a2ba8b2a04da629b0317568dea2a6b3c
parentde427d319c699b8bed7ed73289b3698f13ac3acc (diff)
Store python modules on './bin/modules/' subdirectory. [#37]
-rw-r--r--.gitignore1
-rw-r--r--bin/modules/__init__.py0
-rw-r--r--bin/modules/handler.py (renamed from bin/handler.py)0
-rw-r--r--bin/modules/printer.py (renamed from bin/printer.py)4
-rw-r--r--bin/modules/world.py (renamed from bin/world.py)0
-rwxr-xr-xbin/salis.py4
6 files changed, 5 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index b5cad49..a344b50 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
bin/__pycache__/*
+bin/modules/__pycache__/*
bin/common/pipe
bin/error.log
bin/lib/libsalis-*.so
diff --git a/bin/modules/__init__.py b/bin/modules/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bin/modules/__init__.py
diff --git a/bin/handler.py b/bin/modules/handler.py
index 3325391..3325391 100644
--- a/bin/handler.py
+++ b/bin/modules/handler.py
diff --git a/bin/printer.py b/bin/modules/printer.py
index 1fca43d..51a5b33 100644
--- a/bin/printer.py
+++ b/bin/modules/printer.py
@@ -16,8 +16,8 @@ import time
from collections import OrderedDict
from ctypes import c_uint8, c_uint32, cast, POINTER
-from handler import Handler
-from world import World
+from modules.handler import Handler
+from modules.world import World
class Printer:
diff --git a/bin/world.py b/bin/modules/world.py
index 08f2734..08f2734 100644
--- a/bin/world.py
+++ b/bin/modules/world.py
diff --git a/bin/salis.py b/bin/salis.py
index 200da33..b59671a 100755
--- a/bin/salis.py
+++ b/bin/salis.py
@@ -24,8 +24,8 @@ import traceback
from argparse import ArgumentParser, HelpFormatter
from ctypes import CDLL, c_bool, c_uint8, c_uint32, c_char_p, POINTER
-from handler import Handler
-from printer import Printer
+from modules.handler import Handler
+from modules.printer import Printer
from subprocess import check_call