use os.path.join for combining default simulator exe paths

This commit is contained in:
cjwood 2018-04-12 12:39:05 -04:00
parent 6374a4cda1
commit c2b61426dc
1 changed files with 4 additions and 3 deletions

View File

@ -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)),
]