eclipse plugin: Relax the Python path checking to...
...allow unix variants (e.g.: 'python' ) to be set as the path executable
This commit is contained in:
parent
62b475b05c
commit
20d2ba9b41
1 changed files with 6 additions and 1 deletions
|
@ -463,7 +463,12 @@ public class WMLTools
|
|||
*/
|
||||
public static boolean checkWMLTool( Paths paths, String wmlTool )
|
||||
{
|
||||
if ( !ResourceUtils.isValidFilePath( Preferences.getString(Constants.P_PYTHON_PATH) ) )
|
||||
String pythonPath = Preferences.getString( Constants.P_PYTHON_PATH );
|
||||
if ( pythonPath.isEmpty( ) ||
|
||||
( pythonPath.matches( "^.*(/|\\\\).*$" ) &&
|
||||
!ResourceUtils.isValidFilePath( Preferences.getString(Constants.P_PYTHON_PATH) )
|
||||
)
|
||||
)
|
||||
{
|
||||
GUIUtils.showWarnMessageBox( Messages.WMLTools_42 );
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue