mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 01:56:05 +01:00
Minimize code addition
This commit is contained in:
parent
ddf798119f
commit
092992aa49
11
configure
vendored
11
configure
vendored
@ -504,12 +504,11 @@ def create_ninja_and_rc(l_installed):
|
|||||||
''
|
''
|
||||||
]
|
]
|
||||||
|
|
||||||
if os.getenv('OPAMROOT'):
|
qp_opam_root = os.getenv('OPAMROOT')
|
||||||
opam_root = os.getenv('OPAMROOT')
|
if not qp_opam_root:
|
||||||
l_rc.append('export OPAMROOT={0}'.format(opam_root))
|
qp_opam_root = '${HOME}'
|
||||||
l_rc.append('source ${OPAMROOT}/opam-init/init.sh > /dev/null 2> /dev/null || true')
|
l_rc.append('export QP_OPAM={0}'.format(qp_opam_root))
|
||||||
else:
|
l_rc.append('source ${QP_OPAM}/opam-init/init.sh > /dev/null 2> /dev/null || true')
|
||||||
l_rc.append('source ${HOME}/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true')
|
|
||||||
l_rc.append('')
|
l_rc.append('')
|
||||||
|
|
||||||
path = join(QP_ROOT, "quantum_package.rc")
|
path = join(QP_ROOT, "quantum_package.rc")
|
||||||
|
Loading…
Reference in New Issue
Block a user