mirror of
https://github.com/jessebot/tiny_personal_website.git
synced 2025-10-01 01:48:43 +00:00
made .config hidden, updated gitignore
This commit is contained in:
parent
4d768f37bf
commit
5d449d1c7f
5 changed files with 5 additions and 6 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue