diff options
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/user_agent.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/pixelated/user_agent.py b/service/pixelated/user_agent.py index 33b43a3e..bf48e740 100644 --- a/service/pixelated/user_agent.py +++ b/service/pixelated/user_agent.py @@ -37,6 +37,8 @@ static_folder = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", ". # this is a workaround for packaging if not os.path.exists(static_folder): static_folder = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "..", "web-ui", "app")) +if not os.path.exists(static_folder): + static_folder = os.path.join('usr', 'share', 'pixelated-user-agent') app = Flask(__name__, static_url_path='', static_folder=static_folder) |