-
Notifications
You must be signed in to change notification settings - Fork 50
/
config.py
executable file
·31 lines (25 loc) · 1.04 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python2
"""Configuration values for the project."""
import os.path as path
import click
############################ EDIT HERE ########################################
UP_FP = path.expanduser("external/up")
SMPL_FP = path.expanduser("external/smpl")
EIGEN_FP = "/usr/include/eigen3/"
###############################################################################
# Infrastructure. Don't edit. #
###############################################################################
@click.command()
@click.argument('key', type=click.STRING)
def cli(key):
"""Print a config value to STDOUT."""
if key in globals().keys():
print globals()[key]
else:
raise Exception("Requested configuration value not available! "
"Available keys: " +
str([kval for kval in globals().keys()
if kval.isupper()]) +
".")
if __name__ == '__main__':
cli() # pylint: disable=no-value-for-parameter