Compare commits

...

2 commits

Author SHA1 Message Date
7dfc5dcefa
Absolute path
All checks were successful
/ mypy (push) Successful in 21s
/ pylint (push) Successful in 18s
/ lint-and-typing (push) Successful in 24s
/ build-artifacts (push) Successful in 9s
/ publish-artifacts (push) Successful in 10s
/ release (push) Successful in 7s
2024-08-09 19:14:12 +02:00
1aee3e0efd
Bugfix
All checks were successful
/ pylint (push) Successful in 18s
/ mypy (push) Successful in 21s
/ build-artifacts (push) Successful in 9s
/ publish-artifacts (push) Successful in 9s
/ release (push) Successful in 7s
/ lint-and-typing (push) Successful in 24s
2024-08-09 19:09:05 +02:00
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ def run():
servantid = input("Enter servant ID: ")
try:
t = int(servantid)
if t > 0:
if t <= 0:
raise ValueError
except ValueError:
print("Servant ID has to be a valid integer above 0")
@ -36,7 +36,7 @@ def run():
path = Paths.IMAGES / servantid
for f in path.iterdir():
process_sprite(f, sprites[f.stem], servantid)
print(f"Files have been saved at: {Paths.OUTPUT / servantid}")
print(f"Files have been saved at: {(Paths.OUTPUT / servantid).absolute()}")
def process_sprite(filepath: pathlib.Path, position: tuple, servantid: str):
im = Image.open(filepath)

View file

@ -1,6 +1,6 @@
[project]
name = "atlasimagecomposer"
version = "0.1.0-a.1"
version = "0.1.0-a.3"
dependencies = [
"numpy~=2.0.1",
"pillow~=10.4.0",