mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user