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:
Timotei Dolean 2011-07-06 16:53:43 +00:00
parent 62b475b05c
commit 20d2ba9b41

View file

@ -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;