Skip to content

Commit

Permalink
Fix data file import and package name issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sircinnamon committed Sep 23, 2019
1 parent 522ec02 commit c399b52
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion runescape-text/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions runescape_text/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .runescape_text import *
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from PIL import Image, ImageDraw,ImageFont
import math
import sys, getopt
import sys, getopt, os

# Preset colors
black = (0,0,0)
Expand Down Expand Up @@ -375,7 +375,7 @@ def line_merge(arr):
"shake": shake_effect
}

fnt = ImageFont.truetype('./runescape_uf.ttf', size=18)
fnt = ImageFont.truetype(os.path.join(os.path.dirname(__file__),'data/runescape_uf.ttf'), size=18)

if __name__ == "__main__":
# string = "glow1:wave:cdjquw4 \nAAAA"
Expand All @@ -398,7 +398,7 @@ def line_merge(arr):
else:
multi_frame_save(img, file=outfile)
except getopt.GetoptError:
print("\nrunescape.py [options] <string>")
print("\nrunescape_text.py [options] <string>")
print("OPTIONS")
print("\t-o <outputfile>")
print("\t-c <colour>")
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="runescape-text",
version="1.0.0",
version="1.0.4",
author="Riley Lahd",
author_email="sircinnamon@gmail.com",
description="A program for generating runescape-chat-like images of text.",
Expand All @@ -19,4 +19,8 @@
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=[
"pillow",
],
package_data={"":["data/runescape_uf.ttf"]},
)

0 comments on commit c399b52

Please sign in to comment.