public static String getWakaTimeCLI() { Bundle bundle = Platform.getBundle("com.wakatime.eclipse.plugin"); URL url = bundle.getEntry("/"); URL rootURL = null; try { rootURL = FileLocator.toFileURL(url); } catch (Exception e) { WakaTime.error("Error", e); } if (rootURL == null) return null; File script = new File( Dependencies.combinePaths( rootURL.getPath(), "dependencies", "wakatime-master", "wakatime", "cli.py")); return script.getAbsolutePath(); }