update_config.py
branchv0.6.x
changeset 483 fb210a116f18
parent 459 033a0436894f
child 568 14abdd04ddf5
--- a/update_config.py	Sun Nov 13 20:19:40 2011 +0000
+++ b/update_config.py	Sat Nov 26 17:28:59 2011 +0000
@@ -8,7 +8,18 @@
 from time import time
 from ConfigParser import ConfigParser
 from shutil import copy2
-from VirtualMailManager.constants.VERSION import VERSION
+try:
+    from VirtualMailManager.constants.VERSION import VERSION
+except ImportError:
+    os.sys.stderr.write('error: no pre 0.6.0 version information found\n')
+    raise SystemExit(2)
+
+# we have to remove the old CamelCase files
+import VirtualMailManager
+vmm_inst_dir = os.path.dirname(VirtualMailManager.__file__)
+tmp_info = open('/tmp/vmm_inst_dir', 'w')
+tmp_info.write(vmm_inst_dir)
+tmp_info.close()
 
 try:
     import psycopg2