diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2014-09-10 11:36:16 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2014-09-10 12:08:34 +0200 |
commit | dfd12bc6c6625ed1f2d811a8abbc491688d6bd54 (patch) | |
tree | 4eaf764b7fd64f584a6b988ce544ea77de253af4 /service/pixelated | |
parent | 336c61806095752d08da03657b460e8532ee7324 (diff) |
Build and add resources at the right locations.
- include package data into build
- build resources as part of debian dpkg-buildpackage
use: dpkg-buildpackage -rfakeroot -uc -us to build the package
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) |