File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121"""
2222
2323import os
24+ import pathlib
2425import tempfile
26+ import starplot
2527import streamlit as st
2628from datetime import datetime , date
2729from zoneinfo import ZoneInfo
2830from scripts .glasgow_horizon import make_horizon_plot
2931from scripts .glasgow_zenith import make_zenith_plot
3032
31- # Fix DuckDB/Starplot permissions
32- duckdb_dir = os .path .join (tempfile .gettempdir (), "duckdb_extensions" )
33- os .makedirs (duckdb_dir , exist_ok = True )
34- os .environ ["IBIS_DUCKDB_LIBDIR" ] = duckdb_dir
35- os .environ ["IBIS_DUCKDB_DATA_DIR" ] = duckdb_dir
33+ # Override the library path
34+ starplot_library_dir = pathlib .Path (tempfile .gettempdir ()) / "starplot_library"
35+ os .makedirs (starplot_library_dir , exist_ok = True )
36+ starplot .data .library_path = starplot_library_dir
3637
3738
3839st .title ("🌌 Glasgow Starplot Viewer" )
You can’t perform that action at this time.
0 commit comments