sys.stdout = sys.__stdout__
sys.stderr = sys.__stderr__
- return render_template('output.html', result = out[0].getvalue(), stderr = out[1].getvalue(), error = error)
+ return render_template('output.html', result=out[0].getvalue(), stderr=out[1].getvalue(), error=error, css_url=url_for('static', filename='style.css'))
form = SubmitForm()
form.tests.choices = [(t, t) for t in tests_all]
form.tests.data = [(t) for t in tests_default]
- return render_template('index.html', form = form)
+ return render_template('index.html', form=form, css_url=url_for('static', filename='style.css'))
if __name__ == '__main__':
<head>
<title>OCCI Compliance Tests</title>
- <link rel="stylesheet" type="text/css" href="static/style.css"/>
+ <link rel="stylesheet" type="text/css" href="{{ css_url}}"/>
<script>
function tests_all(state) {
checkboxes = document.getElementsByName('tests')
<head>
<title>OCCI Compliance Tests</title>
- <link rel="stylesheet" type="text/css" href="static/style.css"/>
+ <link rel="stylesheet" type="text/css" href="{{css_url}}"/>
</head>
<body>