1. Sean Davis
  2. bioinformatics.nci.nih.gov

Commits

Sean Davis  committed d81c33e

Find software list based on location of app

  • Participants
  • Parent commits 2bacdf6
  • Branches master

Comments (0)

Files changed (1)

File app.py

View file
  • Ignore whitespace
 from flask import Flask, url_for
 from flask import render_template
 from flask_flatpages import FlatPages
+import os
 
 from bioinformaticsncinihgov.software import SoftwareList
 
 
 @app.route('/software/')
 def software_list():
-    software = SoftwareList('software.yaml')
+    software = SoftwareList(os.path.join(os.path.dirname(__file__),'software.yaml'))
     return render_template('software.html',software = software.software)
 
 @app.route('/<path:path>/')