Package Bio :: Package PopGen :: Package SimCoal
[hide private]
[frames] | no frames]

Source Code for Package Bio.PopGen.SimCoal

 1  # Copyright 2007 by Tiago Antao.  All rights reserved. 
 2  # This code is part of the Biopython distribution and governed by its 
 3  # license.  Please see the LICENSE file that should have been included 
 4  # as part of this package. 
 5   
 6  """SimCoal2 execution module and support functions (DEPRECATED).""" 
 7   
 8  import os 
 9  import sys 
10  import warnings 
11   
12  from Bio import BiopythonDeprecationWarning 
13   
14  warnings.warn("Bio.PopGen.SimCoal has been deprecated, and we intend to " 
15                " remove it in a future release of Biopython. If you would like" 
16                " to continue using it, please contact the Biopython developers" 
17                " via the mailing list.", BiopythonDeprecationWarning) 
18   
19   
20  # This is a workaround to work with the test system 
21  # In any case the problem is with the test system 
22  for instance in sys.path: 
23      test_path = os.path.join(instance, 'Bio', 'PopGen', 'SimCoal', 'data') 
24      if os.access(test_path, os.F_OK): 
25          builtin_tpl_dir = test_path 
26          break 
27