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  ''' 
 7  SimCoal2 execution module and support functions. 
 8  ''' 
 9   
10  import os 
11  import sys 
12   
13  # This is a workaround to work with the test system 
14  # In any case the problem is with the test system 
15  for instance in sys.path: 
16      test_path = os.path.join(instance, 'Bio', 'PopGen', 'SimCoal', 'data') 
17      if os.access(test_path, os.F_OK): 
18          builtin_tpl_dir = test_path 
19          break 
20