diff --git a/scraper_gis/sudrf_pdf_compiler.py b/scraper_gis/sudrf_pdf_compiler.py index 0177cfe..81bc00b 100644 --- a/scraper_gis/sudrf_pdf_compiler.py +++ b/scraper_gis/sudrf_pdf_compiler.py @@ -15,22 +15,22 @@ logging.basicConfig( level=logging.INFO, format='%(asctime)s [%(levelname)s] %(message)s', handlers=[ - logging.FileHandler("/home/matrixhasyou/swarm-services/domovoy-bot/scraper_gis/logs/sudrf_compiler.log", encoding="utf-8"), + logging.FileHandler("/app/logs/sudrf_compiler.log", encoding="utf-8"), logging.StreamHandler(sys.stdout) ] ) log = logging.getLogger("SUD-Compiler") -# Add libs path -sys.path.append("/home/matrixhasyou/swarm-services/libs") +# Add libs path (if mounted) +sys.path.append("/app/libs") try: from swarmlib.gdrive import GDriveManager except ImportError as e: log.error(f"Cannot import swarmlib: {e}") GDriveManager = None -EXPORT_DIR = Path("/home/matrixhasyou/swarm-services/domovoy-bot/scraper_gis/exports/sudrf") -OUTPUT_DIR = Path("/home/matrixhasyou/swarm-services/domovoy-bot/exports/compiled_sudrf") +EXPORT_DIR = Path("/app/exports/sudrf") +OUTPUT_DIR = Path("/app/exports/compiled_sudrf") OUTPUT_DIR.mkdir(parents=True, exist_ok=True) BOT_TOKEN = "8725618164:AAH1tGalq-pw1l0t4P5c0sdLkCVJdh7IE7M"