made .config hidden, updated gitignore

This commit is contained in:
JesseBot 2016-02-11 09:31:53 +00:00
parent 4d768f37bf
commit 5d449d1c7f
5 changed files with 5 additions and 6 deletions

7
.gitignore vendored
View file

@ -1,10 +1,9 @@
legacy/*
legacy
config/config.yaml
config.yaml
.config/config.yaml
.config.yaml
front_end/images/private/*
front_end/images/defcon23.JPG
front_end/images/swag.gif
front_end/images/newhairlolz.png
front_end/images/currentjesse.jpg
front_end/images/favicon_jessebot.ico
front_end/html_templates/hate.tpl

View file

@ -1,6 +1,6 @@
#!/usr/bin/python
# Code by JesseBot@Linux.com
# 1/3/16
# 2/11/16
# Production web routing bottle file
import bottle
@ -13,7 +13,7 @@ import yaml
def get_global_variable(global_variable):
""" gets global variable given string variable name"""
with open('./config/config.yaml', 'r') as f:
with open('./.config/config.yaml', 'r') as f:
doc = yaml.load(f)
txt = doc["Globals"][global_variable]
return txt