Skip to content

Commit

Permalink
bugfix: Use the script location for the faces not cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
gshiva committed Dec 27, 2023
1 parent 8e4510a commit 8b7e945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pygptcourse/file_system_image_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def get_full_image_path(self, path):

class FileSystemImageLoader(ImageLoader):
def __init__(self, base_dir=None):
self.base_dir = base_dir or os.getcwd()
self.base_dir = base_dir or os.path.dirname(os.path.abspath(__file__))

def get_full_image_path(self, image_name):
full_image_path = os.path.join(self.base_dir, image_name)
Expand Down

0 comments on commit 8b7e945

Please sign in to comment.