from flask import Blueprint, render_template, send_from_directory
from splice.environment import Environment

root = Blueprint('root', __name__)
env = Environment.instance()

campaign_static_path = env.application.config['STATIC_DIR'] + '/build/campaign-manager'


@root.route('/', methods=['GET'])
def index():
    return render_template('index.jinja2')


@root.route('/distribution/', methods=['GET'])
def distribution():
    return render_template('distribution.jinja2')


@root.route('/campaign', methods=['GET'])
def campaign():
    return send_from_directory(campaign_static_path, 'index.html')


def register_routes(app):
    app.register_blueprint(root)

@@ -101,16 +101,26 @@
 ironment
+%0Aimport os
 %0A%0Aroot =
@@ -201,16 +201,29 @@
 _path = 
+os.path.join(
 env.appl
@@ -254,13 +254,11 @@
 IR'%5D
- +
+,
  '
-/
 buil
@@ -276,16 +276,17 @@
 manager'
+)
 %0A%0A%0A@root

use os.path.join