Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Add linux correct path in file open
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorixx committed Aug 5, 2024
1 parent 2c82325 commit 6b2824b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/text_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ def process_text_raw(text):
for letter in text.upper():
try:
path = os.path.join(
os.path.dirname(__file__), os.pardir, "assets", f"{letter}.stl"
os.path.dirname(os.path.dirname(__file__)), "assets", f"{letter}.stl"
)

obj = mesh.Mesh.from_file(path)
except:
path = os.path.join(
os.path.dirname(__file__), os.pardir, "assets", "question_mark.stl"
os.path.dirname(os.path.dirname(__file__)), "assets", "question_mark.stl"
)

obj = mesh.Mesh.from_file(path)
Expand Down

0 comments on commit 6b2824b

Please sign in to comment.