2011-03-02 18:56:06 +00:00
|
|
|
#!/usr/bin/env python
|
2011-08-30 23:23:00 +00:00
|
|
|
import os,sys
|
2011-03-02 18:56:06 +00:00
|
|
|
|
2011-08-30 23:23:00 +00:00
|
|
|
path_root = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
path_addons = os.path.join(path_root, 'addons')
|
|
|
|
if path_addons not in sys.path:
|
|
|
|
sys.path.insert(0, path_addons)
|
|
|
|
|
|
|
|
import base
|
2011-03-02 18:56:06 +00:00
|
|
|
|
2011-08-30 23:44:33 +00:00
|
|
|
def main():
|
|
|
|
# TODO move the code of base.common.main here !
|
|
|
|
# change the code to configure a simple werzug server -> base.common.Root()
|
2011-08-30 23:23:00 +00:00
|
|
|
base.common.main(sys.argv)
|
2011-08-30 23:44:33 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|
|
|
|
|
|
|
|
|
|
|
|
|