10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-03 12:43:48 +01:00
QuantumPackage/scripts/utility/qp_path.py

20 lines
460 B
Python
Raw Permalink Normal View History

2020-01-27 22:30:01 +01:00
#!/usr/bin/env python3
2019-01-25 11:39:31 +01:00
# -*- coding: utf-8 -*-
2020-03-17 16:39:43 +01:00
2019-01-25 11:39:31 +01:00
import os
import sys
try:
QP_ROOT = os.environ['QP_ROOT']
except:
2020-01-27 22:30:01 +01:00
print("source quantum_package.rc")
2019-01-25 11:39:31 +01:00
sys.exit(1)
else:
QP_EZFIO = os.environ["QP_EZFIO"]
QP_SRC = os.path.join(QP_ROOT, "src")
QP_PLUGINS = os.path.join(QP_ROOT, "plugins")
QP_OCAML = os.path.join(QP_ROOT, "ocaml")
QP_TESTS = os.path.join(QP_ROOT, "tests")
QP_DATA = os.path.join(QP_ROOT, "data")