Skip to content

Commit

Permalink
refactor: modify bash export statements server side
Browse files Browse the repository at this point in the history
  • Loading branch information
rouille committed Apr 7, 2020
1 parent 0c10924 commit 244c95a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions powersimdata/scenario/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def launch_simulation(self):
print("--> Launching simulation on server")
username = os.getlogin()
cmd = ['ssh', username+'@'+const.SERVER_ADDRESS,
'export PYTHONPATH="/home/EGM/v2/REISE/utility/:$PYTHONPATH";',
'export PYTHONPATH="/home/EGM/v2/REISE/:$PYTHONPATH";',
'python3',
'/home/EGM/v2/REISE/utility/call.py',
'/home/EGM/v2/REISE/pyreise/utility/call.py',
self._scenario_info['id']]
process = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
print("PID: %s" % process.pid)
Expand All @@ -140,9 +140,9 @@ def extract_simulation_output(self):
print("--> Extracting output data on server")
username = os.getlogin()
cmd = ['ssh', username+'@'+const.SERVER_ADDRESS,
'export PYTHONPATH="/home/EGM/v2/REISE/utility/:$PYTHONPATH";',
'export PYTHONPATH="/home/EGM/v2/REISE/:$PYTHONPATH";',
'python3',
'/home/EGM/v2/REISE/utility/extract_data.py',
'/home/EGM/v2/REISE/pyreise/utility/extract_data.py',
self._scenario_info['id']]
process = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
print("PID: %s" % process.pid)
Expand Down

0 comments on commit 244c95a

Please sign in to comment.