Added categories lookup file
This commit is contained in:
parent
45f7edb75d
commit
c6113e31eb
@ -48,6 +48,12 @@ gmFile = os.getenv('GM') if os.getenv('GM').endswith('.yml') or os.getenv('GM').
|
|||||||
if not os.path.exists(gmFile):
|
if not os.path.exists(gmFile):
|
||||||
yaml_dump({},gmFile)
|
yaml_dump({},gmFile)
|
||||||
|
|
||||||
|
# Locate or create Categories lookup file. Same as above.
|
||||||
|
categoriesFile = os.getenv('CATEGORIES') if os.getenv('CATEGORIES').endswith('.yml') or os.getenv('CATEGORIES').endswith('.yaml') else './data/categories.yml'
|
||||||
|
|
||||||
|
if not os.path.exists(categoriesFile):
|
||||||
|
yaml_dump({},categoriesFile)
|
||||||
|
|
||||||
# Locate Cogs Directory
|
# Locate Cogs Directory
|
||||||
cogsDir = 'cogs'
|
cogsDir = 'cogs'
|
||||||
|
|
||||||
|
1
app/data/categories.yml
Normal file
1
app/data/categories.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
Loading…
Reference in New Issue
Block a user