boinc/tools/parse_config
David Anderson b7406ef57c - server: make the python code honor BOINC_PROJECT_PATH.
It is now possible to use the same set of tools for multiple
    projects by setting BOINC_PROJECT_PATH.
    From Gabor Gombas.

svn path=/trunk/boinc/; revision=18376
2009-06-11 16:06:25 +00:00

18 lines
306 B
Python
Executable File

#!/usr/bin/env python
# -*- mode: python; python-indent: 4; -*-
## $Id$
'''
A program to pass config file settings to calling programs via stdout
'''
import boinc_path_config
from Boinc import configxml
import sys, os
config = configxml.default_config().config
print config.__dict__.get(sys.argv[1])