Package qm
[hide private]
[frames] | no frames]

Source Code for Package qm

 1  ######################################################################## 
 2  # 
 3  # File:   __init__.py 
 4  # Author: Alex Samuel 
 5  # Date:   2000-12-20 
 6  # 
 7  # Contents: 
 8  #   Initialization for module qm. 
 9  # 
10  # Copyright (c) 2000 by CodeSourcery, LLC.  All rights reserved.  
11  # 
12  # For license terms see the file COPYING. 
13  # 
14  ######################################################################## 
15   
16  ######################################################################## 
17  # Imports 
18  ######################################################################## 
19   
20  from qm.common import * 
21  from qm.diagnostic import error, warning, message 
22  from qm.config import version 
23  from qm.config import data_dir 
24  from qm.config import doc_dir 
25  from qm.config import extension_path 
26  # The prefix variable is only available after QMTest is built. 
27  # Compute it, if it isn't available. 
28  try: 
29      from qm.config import prefix 
30  except ImportError: 
31      import os 
32      prefix = os.path.join(os.path.dirname(__file__), os.path.pardir) 
33   
34  version_info = tuple(version.split('.')) 
35   
36  ######################################################################## 
37  # Local Variables: 
38  # mode: python 
39  # indent-tabs-mode: nil 
40  # End: 
41