From 6bcabded398853cc6aa3e8acbada34f3238cc5dc Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 15 Feb 2022 17:01:56 -0500 Subject: add libexec path to PYTHONPATH --- stackbin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100755 => 100644 stackbin.py (limited to 'stackbin.py') diff --git a/stackbin.py b/stackbin.py old mode 100755 new mode 100644 index 56380e6..9d86338 --- a/stackbin.py +++ b/stackbin.py @@ -24,8 +24,7 @@ from flask import Blueprint, Flask, Response, request, url_for, redirect, g, ren from flask_sqlalchemy import SQLAlchemy from werkzeug.middleware.proxy_fix import ProxyFix from pytimeparse.timeparse import timeparse # python3-pytimeparse -import os -from stackbin_auth import auth, requires_session +import os, sys # uwsgidecorators load will fail when using initdb.py but is also not necessary try: from uwsgidecorators import timer # python3-uwsgidecorators @@ -33,6 +32,9 @@ except: print("Warning! Without uwsgidecorators, the cleanup timer cannot run.") import time +sys.path.append('/usr/libexec/stackbin') +from stackbin_auth import auth, requires_session + from sqlalchemy import types from sqlalchemy.dialects.mysql.base import MSBinary from sqlalchemy.schema import Column -- cgit