be explicit about images location (#2791)

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
This commit is contained in:
montezdesousa
2022-10-12 12:22:11 +01:00
committed by GitHub
parent 7143bffca8
commit 88ec6a04c0

View File

@@ -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: