File: __init__.py

package info (click to toggle)
python-biopython 1.68%2Bdfsg-3~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 46,856 kB
  • sloc: python: 160,306; xml: 93,216; ansic: 9,118; sql: 1,208; makefile: 155; sh: 63
file content (26 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2007 by Tiago Antao.  All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license.  Please see the LICENSE file that should have been included
# as part of this package.

"""SimCoal2 execution module and support functions (DEPRECATED)."""

import os
import sys
import warnings

from Bio import BiopythonDeprecationWarning

warnings.warn("Bio.PopGen.SimCoal has been deprecated, and we intend to "
              " remove it in a future release of Biopython. If you would like"
              " to continue using it, please contact the Biopython developers"
              " via the mailing list.", BiopythonDeprecationWarning)


# This is a workaround to work with the test system
# In any case the problem is with the test system
for instance in sys.path:
    test_path = os.path.join(instance, 'Bio', 'PopGen', 'SimCoal', 'data')
    if os.access(test_path, os.F_OK):
        builtin_tpl_dir = test_path
        break