create a php config file from the python config file monitorconfig.py
[monitor.git] / phpconfig.py
diff --git a/phpconfig.py b/phpconfig.py
new file mode 100755 (executable)
index 0000000..663bcc3
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+
+import monitorconfig
+
+print "<?php"
+for attr in dir(monitorconfig):
+       val = monitorconfig.__getattribute__(attr)
+       if attr[0].isupper():
+               print "define('%s', '%s'); " % (attr, val)
+print "?>"