Skip to content

Commit f06db6f

Browse files
committed
Fix usage of OD_USER_PLUGIN_DIR env variable
1 parent ae17c42 commit f06db6f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.MD

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### EFDAttrib
66
- fix display of modes and spectral decomposition test panel
77
### External Attributes
8+
- fix usage of OD_USER_PLUGIN_DIR for locating scripts
89
- add wmpy/AVO folder
910
- add ex_avoig_angle3.py, ex_avoig_angle4.py and ex_avoig_angle5.py for intercept and gradient
1011
calculation from angle stacks

plugins/ExternalAttrib/externalattrib.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ void ExternalAttrib::initClass()
8080
desc->addInput(InputSpec("Input data", true));
8181
desc->addOutputDataType( Seis::UnknowData );
8282

83-
if ( GetEnvVarYN("OD_EX_DIR") )
83+
if ( GetEnvVar("OD_EX_DIR") )
8484
exdir_ = GetEnvVar("OD_EX_DIR");
8585
else {
8686
FilePath fp( GetScriptDir(),"python","wmpy" );
8787
if ( fp.exists() )
8888
exdir_ = fp.fullPath();
8989

90-
if ( GetEnvVarYN("OD_USER_PLUGIN_DIR") ) {
90+
if ( GetEnvVar("OD_USER_PLUGIN_DIR") ) {
9191
FilePath ufp( GetEnvVar("OD_USER_PLUGIN_DIR"), "bin", "python", "wmpy" );
9292
if ( ufp.exists() )
9393
exdir_ = ufp.fullPath();

0 commit comments

Comments
 (0)