equal
deleted
inserted
replaced
6 import os |
6 import os |
7 os.sys.path.remove(os.sys.path[0]) |
7 os.sys.path.remove(os.sys.path[0]) |
8 from time import time |
8 from time import time |
9 from ConfigParser import ConfigParser |
9 from ConfigParser import ConfigParser |
10 from shutil import copy2 |
10 from shutil import copy2 |
11 from VirtualMailManager.constants.VERSION import VERSION |
11 try: |
|
12 from VirtualMailManager.constants.VERSION import VERSION |
|
13 except ImportError: |
|
14 os.sys.stderr.write('error: no pre 0.6.0 version information found\n') |
|
15 raise SystemExit(2) |
|
16 |
|
17 # we have to remove the old CamelCase files |
|
18 import VirtualMailManager |
|
19 vmm_inst_dir = os.path.dirname(VirtualMailManager.__file__) |
|
20 tmp_info = open('/tmp/vmm_inst_dir', 'w') |
|
21 tmp_info.write(vmm_inst_dir) |
|
22 tmp_info.close() |
12 |
23 |
13 try: |
24 try: |
14 import psycopg2 |
25 import psycopg2 |
15 except ImportError: |
26 except ImportError: |
16 has_psycopg2 = False |
27 has_psycopg2 = False |