mirror of
https://github.com/jessebot/tiny_personal_website.git
synced 2025-10-01 01:48:43 +00:00
fixed import
This commit is contained in:
parent
a2b7896d42
commit
42f77da14a
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
# production jessebot.com python file
|
||||
|
||||
import lib
|
||||
from lib import get_global_variable
|
||||
import logging
|
||||
from bottle import redirect, request, response, route
|
||||
from bottle import run, static_file, template
|
||||
|
|
2
lib.py
2
lib.py
|
@ -4,5 +4,5 @@ def get_global_variable(global_variable):
|
|||
""" gets global variable given string variable name"""
|
||||
with open('./config.yaml', 'r') as f:
|
||||
doc = yaml.load(f)
|
||||
txt = doc["Global"][global_variable]
|
||||
txt = doc["Globals"][global_variable]
|
||||
return txt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue