Skip to content

Commit

Permalink
add info from xarray
Browse files Browse the repository at this point in the history
  • Loading branch information
raybellwaves committed Aug 18, 2020
1 parent 61278f3 commit fc6f551
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/source/conf.py
Expand Up @@ -6,11 +6,27 @@

import datetime
import os
import pathlib
import subprocess
import sys

root = pathlib.Path(__file__).absolute().parent.parent
os.environ["PYTHONPATH"] = str(root)
sys.path.insert(0, str(root))

import xskillscore

sys.path.insert(0, os.path.abspath('../..'))
print("python exec:", sys.executable)
print("sys.path:", sys.path)

if "conda" in sys.executable:
print("conda environment:")
subprocess.run(["conda", "list"])
else:
print("pip environment:")
subprocess.run(["pip", "list"])

print("xskillscore: %s, %s" % (xskillscore.__version__, xskillscore.__file__))

# -- Project information -----------------------------------------------------
current_year = datetime.datetime.now().year
Expand Down

0 comments on commit fc6f551

Please sign in to comment.