From 8cc8d412f0b88d153d07912e7bfcaaf539728083 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Tue, 17 Sep 2019 21:39:18 +0400 Subject: [PATCH] with_my.example --- README.md | 8 ++++++++ with_my.example | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 README.md create mode 100755 with_my.example diff --git a/README.md b/README.md new file mode 100644 index 0000000..cee31dd --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Usage +``` +cp with_my.example with_my + +# edit path to your private configuration now: +vim with_my +``` +TODO add instructions to try it? diff --git a/with_my.example b/with_my.example new file mode 100755 index 0000000..1fbe415 --- /dev/null +++ b/with_my.example @@ -0,0 +1,10 @@ +#!/bin/bash +THISDIR="$(dirname "$0")" + + +PREV="" +if [[ -n $PYTHONPATH ]]; then + PREV=":$PYTHONPATH" +fi +export PYTHONPATH="$THISDIR$PREV" +exec "$@"