From 63ab2cb3204fa9a71a1fd445e44aacf5f8547ab4 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 23 Dec 2017 19:34:01 +0100 Subject: [PATCH] update bootstrap and bash script --- bootstrap.sh | 2 +- dotdrop.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 9854366..2c2bf31 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -6,7 +6,7 @@ fold="dotfiles" conf="config.yaml" # copy dotdrop entry point -cat dotdrop/dotdrop.sh | sed 's#${cur}/dotdrop/dotdrop.py#${cur}/dotdrop/dotdrop/dotdrop.py#g' > dotdrop.sh +cp dotdrop/dotdrop.sh > dotdrop.sh chmod +x dotdrop.sh mkdir -p $fold diff --git a/dotdrop.sh b/dotdrop.sh index 75300f5..aaa568f 100755 --- a/dotdrop.sh +++ b/dotdrop.sh @@ -25,6 +25,6 @@ cd "${cur}" || { echo "Folder \"${cur}\" doesn't exist, aborting." && exit; } # init the submodule git submodule update --init --recursive # launch dotdrop -python3 -m dotdrop.dotdrop --cfg="${cfg}" "${args[@]}" +PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop --cfg="${cfg}" "${args[@]}" # pivot back cd "${opwd}" || { echo "Folder \"${opwd}\" doesn't exist, aborting." && exit; }