Skip to content

Commit

Permalink
amended app.py to import from params only after adding parent directo…
Browse files Browse the repository at this point in the history
…ry to path
  • Loading branch information
cemaccam committed Jul 13, 2023
1 parent 01cf6ba commit e3504be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
from werkzeug.utils import secure_filename
import simplejson as json
import pandas as pd
from params import indicators
from pathlib import Path
import sys, os, re, glob
file = Path(__file__).resolve()
parent, root = file.parent, file.parents[1] # 1 level up
sys.path.append(str(root))
from params import indicators # Needs to come after sys.path has been amended

# import the about scripts
importdir.do(str(parent) + '/about', globals())
Expand Down

0 comments on commit e3504be

Please sign in to comment.