Skip to content

Commit

Permalink
Let tseek find parent dir when top directory is not configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeshik committed Dec 1, 2016
1 parent ab11977 commit 59a17bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion install/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ fi # -z TAILSEEKER_BINDIR

rm -f $install_dir/tseek
cat $TOPDIR/install/tailseeker.in | \
sed -e "s,%%TAILSEEKER_DIR%%,$TOPDIR,g" > $install_dir/tseek
sed -e "s,%%TAILSEEKER_DIR%%,$TOPDIR,g" -e "s,^##,,g" \
-e 's,^\(.*\)##$,# \1,g' > $install_dir/tseek
script_mode=$(printf "%04o\n" $((0777 & ~$(umask))))
chmod $script_mode $install_dir/tseek

Expand Down
6 changes: 4 additions & 2 deletions install/tailseeker.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
# THE SOFTWARE.
#

TAILSEEKER_DIR = '%%TAILSEEKER_DIR%%'
import sys, os

TAILSEEKER_DIR = os.path.join(os.path.dirname(sys.argv[0]), '..') ##
##TAILSEEKER_DIR = '%%TAILSEEKER_DIR%%'

import sys
sys.path.insert(0, TAILSEEKER_DIR)

from tailseeker import tskcommand
Expand Down

0 comments on commit 59a17bc

Please sign in to comment.