diff options
| author | Seth Riley <17361645+Qudix@users.noreply.github.com> | 2020-11-02 13:20:05 -0600 |
|---|---|---|
| committer | Seth Riley <17361645+Qudix@users.noreply.github.com> | 2020-11-02 13:20:05 -0600 |
| commit | f7d7661d58d9b0d158fd959978b29c9c1a3a8de7 (patch) | |
| tree | d8dd76c0df43b5aa8d15bea2965771afe0846052 /src/env.cpp | |
| parent | 88475677d29a275fd9d25f452f58d3d745720124 (diff) | |
Changing the location of several directories
Diffstat (limited to 'src/env.cpp')
| -rw-r--r-- | src/env.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/env.cpp b/src/env.cpp index 2862aa95..4e5ad196 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -394,6 +394,13 @@ QString path() return get("PATH"); } +QString prependToPath(const QString& s) +{ + auto old = path(); + set("PATH", s + ";" + old); + return old; +} + QString addPath(const QString& s) { auto old = path(); |
