fixed import

This commit is contained in:
JesseBot 2015-10-22 20:00:39 +00:00
parent a2b7896d42
commit 42f77da14a
2 changed files with 2 additions and 2 deletions

View file

@ -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
View file

@ -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