-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: GeneratePythonPlugin can generate batch/shell init file. (#896)
Signed-off-by: Michael Jackson <[email protected]>
- Loading branch information
1 parent
d43cc50
commit 8f1a45d
Showing
11 changed files
with
144 additions
and
25 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
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
27 changes: 27 additions & 0 deletions
27
src/Plugins/SimplnxCore/src/SimplnxCore/utils/PythonPluginTemplate.bat
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,27 @@ | ||
:: This batch file can be run to activate a specific python virtual environment | ||
:: and set the necessary envionment variables to load the DREAM3D-NX Plugin | ||
|
||
:: If you launch an Anaconda Prompt you can then run this batch file to | ||
:: activate your environment and set the needed variables. If you have installed | ||
:: your anaconda environment into a non-default location then you will need to | ||
:: modify the below line with this command instead, being sure to substitue | ||
:: the proper path to the environment. | ||
:: conda activate --prefix C:/conda3/envs/pyd3d | ||
|
||
:: conda activate @ANACONDA_ENV_NAME@ | ||
|
||
:: ---------------------------------------------------------------------------- | ||
:: The first variable to set is the PYTHONPATH which should point to a | ||
:: directory or directories that contains the top level python plugin | ||
:: folders. If you need to list mulitple directories to search for plugins | ||
:: you can use the ";" character to separate those paths. | ||
|
||
set PYTHONPATH=@PYTHONPATH@ | ||
|
||
:: ---------------------------------------------------------------------------- | ||
:: The next variable is a list of all plugins that you would like to | ||
:: load when DREAM3D-NX (or NXRunner) is run. If you have multiple plugins that | ||
:: you would like to load, list them all separated by a ";" character. | ||
|
||
set SIMPLNX_PYTHON_PLUGINS=@SIMPLNX_PYTHON_PLUGINS@ | ||
|
28 changes: 28 additions & 0 deletions
28
src/Plugins/SimplnxCore/src/SimplnxCore/utils/PythonPluginTemplate.sh
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,28 @@ | ||
#!/bin/sh | ||
|
||
# This batch file can be run to activate a specific python virtual environment | ||
# and set the necessary envionment variables to load the DREAM3D-NX Plugin | ||
|
||
# If you launch an Anaconda Prompt you can then run this batch file to | ||
# activate your environment and set the needed variables. If you have installed | ||
# your anaconda environment into a non-default location then you will need to | ||
# modify the below line with this command instead, being sure to substitue | ||
# the proper path to the environment. | ||
# conda activate --prefix /opt/local/conda3/envs/pyd3d | ||
|
||
conda activate @ANACONDA_ENV_NAME@ | ||
|
||
# ---------------------------------------------------------------------------- | ||
# The first variable to set is the PYTHONPATH which should point to a | ||
# directory or directories that contains the top level python plugin | ||
# folders. If you need to list mulitple directories to search for plugins | ||
# you can use the ":" character to separate those paths. | ||
|
||
export PYTHONPATH=@PYTHONPATH@ | ||
|
||
# ---------------------------------------------------------------------------- | ||
# The next variable is a list of all plugins that you would like to | ||
# load when DREAM3D-NX (or NXRunner) is run. If you have multiple plugins that | ||
# you would like to load, list them all separated by a ":" character. | ||
|
||
export SIMPLNX_PYTHON_PLUGINS=@SIMPLNX_PYTHON_PLUGINS@ |
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