git://git.onelab.eu
/
monitor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2848c75b5ef219ff09a6f1c44ae1f7624f4a826c
[monitor.git]
/
phpconfig.py
1
#!/usr/bin/python
2
3
import config
4
5
print "<?php"
6
for attr in dir(config):
7
val = config.__getattribute__(attr)
8
if attr[0].isupper() and attr[1].isupper():
9
print "define('%s', '%s'); " % (attr, val)
10
print "?>"