From 88ec6a04c0a43f40c8aeeee92a8f3bc77639d45a Mon Sep 17 00:00:00 2001 From: montezdesousa <79287829+montezdesousa@users.noreply.github.com> Date: Wed, 12 Oct 2022 12:22:11 +0100 Subject: [PATCH] be explicit about images location (#2791) Co-authored-by: James Maslek Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> --- openbb_terminal/helper_funcs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/helper_funcs.py b/openbb_terminal/helper_funcs.py index 05e2cd20899..2352116b507 100644 --- a/openbb_terminal/helper_funcs.py +++ b/openbb_terminal/helper_funcs.py @@ -1717,8 +1717,12 @@ def screenshot_to_canvas(shot, plot_exists: bool = False): BACKGROUND_WIDTH_SLACK = 150 BACKGROUND_HEIGHT_SLACK = 150 - background = Image.open(Path("images/background.png")) - logo = Image.open(Path("images/openbb_horizontal_logo.png")) + background = Image.open( + Path(os.path.abspath(__file__), "../../images/background.png") + ) + logo = Image.open( + Path(os.path.abspath(__file__), "../../images/openbb_horizontal_logo.png") + ) try: if plot_exists: