mirror of https://github.com/Qiskit/qiskit.git
use os.path.join for combining default simulator exe paths
This commit is contained in:
parent
6374a4cda1
commit
c2b61426dc
|
@ -38,10 +38,11 @@ EXTENSION = '.exe' if platform.system() == 'Windows' else ''
|
|||
# Add path to compiled qiskit simulator
|
||||
DEFAULT_SIMULATOR_PATHS = [
|
||||
# This is the path where Makefile creates the simulator by default
|
||||
os.path.abspath(os.path.dirname(__file__) + \
|
||||
'../../../out/src/qasm-simulator-cpp/qasm_simulator_cpp' + EXTENSION),
|
||||
os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
'../../out/src/qasm-simulator-cpp/qasm_simulator_cpp' + EXTENSION)),
|
||||
# This is the path where PIP installs the simulator
|
||||
os.path.abspath(os.path.dirname(__file__) + '/qasm_simulator_cpp' + EXTENSION),
|
||||
os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
'qasm_simulator_cpp' + EXTENSION)),
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue