| # | Line 35 | Line 35 | public class Paths { | |
|---|---|---|
| 35 | String wd = System.getProperty("user.dir"); | |
| 36 | return new File(wd); | |
| 37 | } else { | |
| 38 | < | String jarPath = SettingsManager.class.getProtectionDomain() |
| 38 | > | String jarPath = Paths.class.getProtectionDomain() |
| 39 | .getCodeSource().getLocation().getPath(); | |
| 40 | String decodedPath = null; | |
| 41 | try { | |
| # | Line 43 | Line 43 | public class Paths { | |
| 43 | } catch (UnsupportedEncodingException e) { | |
| 44 | e.printStackTrace(); | |
| 45 | } | |
| 46 | < | return new File(decodedPath).getParentFile(); |
| 46 | > | return new File(decodedPath).getParentFile().getParentFile(); |
| 47 | } | |
| 48 | } | |
| 49 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |