-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prototypes a new isolation interface
- Loading branch information
1 parent
aa3462a
commit 7ff4f34
Showing
10 changed files
with
116 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
PYHON_EXECUTABLE_IN_THIS_ENV=%s # python executable | ||
# it is CRUCIAL that the shell script is given port number and password | ||
$PYHON_EXECUTABLE_IN_THIS_ENV %s --objective-name=%s --port="$1" --password="$2" |
8 changes: 2 additions & 6 deletions
8
src/poli/core/util/objective_management/run_script_template.sht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
#!/bin/bash | ||
CONDA_BASE=$(conda info --base) | ||
source $CONDA_BASE/etc/profile.d/conda.sh | ||
cd %s # go to working directory | ||
conda deactivate # get rid of environment variables from the calling process | ||
PYTHONPATH="" # clear python path | ||
conda activate %s # environment location | ||
PYHON_EXECUTABLE_IN_THIS_ENV=%s # python executable | ||
PYTHONPATH="${PYTHONPATH}:%s" # additions to the python path | ||
#BASEDIR=$(dirname "$0") | ||
export PYTHONPATH=${PYTHONPATH} # make python path available to python call | ||
export %s=${PYTHONPATH} # some shell magic can prevent the export of PYTHONPATH -- no clue | ||
# it is CRUCIAL that the shell script is given port number and password | ||
python %s --objective-name=%s --port="$1" --password="$2" "$3" # factory name, port number and password | ||
$PYHON_EXECUTABLE_IN_THIS_ENV %s --objective-name=%s --port="$1" --password="$2" "$3" # factory name, port number and password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters