git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
+++ b/
phpconfig.py
@@ -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 "?>"