conf() added; source command added

This commit is contained in:
urlbot
2014-09-14 12:26:39 +02:00
parent 3b1783011f
commit c5a73aaf62
3 changed files with 18 additions and 1 deletions

13
local_config.py.skel Normal file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/python
if '__main__' == __name__:
print '''this is a config file, which is not meant to be executed'''
exit(-1)
config = {}
config['src-url'] = 'FIXME'
def conf(val):
if val in config.keys():
return config[val]
return None