plotmydata / PlotMyData /__init__.py
jedick
Check if requested packages are already installed
23e6380
raw
history blame contribute delete
393 Bytes
from pathlib import Path
import warnings
import os
from . import agent
# Ensure upload directory exists
upload_dir = "/tmp/uploads"
Path(upload_dir).mkdir(parents=True, exist_ok=True)
# Read, write, execute for owner; read and execute for others
os.chmod(upload_dir, 0o755)
# Suppress Pydantic serialization warnings
warnings.filterwarnings("ignore", message="Pydantic serializer warnings")