File: __init__.py

package info (click to toggle)
python-casacore 3.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,492 kB
  • sloc: python: 4,170; cpp: 1,549; makefile: 68
file content (13 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
from ._version import __version__

__mincasacoreversion__ = "3.1.1"

# If environment variable `AIPSPATH` is not set, then set it to the directory
# containing the `.aipsrc` file that is distributed with this package.
# This `.aipsrc` file uses the environment `CASACORE_DATADIR`, which should
# point to the directory containing the casacore data files.
if "AIPSPATH" not in os.environ:
    root = os.path.dirname(__file__)
    os.environ["AIPSPATH"] = root
    os.environ["CASACORE_DATADIR"] = os.path.join(root, "data")