From fcd724985c229e92e20f90716d9d57a047823d8f Mon Sep 17 00:00:00 2001 From: tech189 Date: Mon, 17 Jan 2022 12:31:50 +0000 Subject: [PATCH 1/3] Fix 'Not a scoop shim' in installer --- scripts/install-python-package.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-python-package.ps1 b/scripts/install-python-package.ps1 index ae164f3..f1a05f2 100644 --- a/scripts/install-python-package.ps1 +++ b/scripts/install-python-package.ps1 @@ -14,7 +14,7 @@ # -b, --branch Git repository branch # -c, --clone-dir Git clone directory name -$scoop_lib = "$(Split-Path (Split-Path (scoop which scoop)))\lib" +$scoop_lib = Join-Path (scoop prefix scoop) lib . "$scoop_lib\getopt.ps1" . "$scoop_lib\help.ps1" From 759dd1de7e2176d9113e6e506e54f4a0145d9327 Mon Sep 17 00:00:00 2001 From: tech189 Date: Mon, 17 Jan 2022 12:32:36 +0000 Subject: [PATCH 2/3] Fix "Not a scoop shim" in uninstaller --- scripts/uninstall-python-package.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/uninstall-python-package.ps1 b/scripts/uninstall-python-package.ps1 index 317ce32..b689e0a 100644 --- a/scripts/uninstall-python-package.ps1 +++ b/scripts/uninstall-python-package.ps1 @@ -9,7 +9,7 @@ # -d, --dir The setup directory # -m, --match Pattern that specifies which files to remove -$scoop_lib = "$(Split-Path (Split-Path (scoop which scoop)))\lib" +$scoop_lib = Join-Path (scoop prefix scoop) lib . "$scoop_lib\getopt.ps1" . "$scoop_lib\help.ps1" From 443f33c873c06e04b24f2a37836ee1013d135ef1 Mon Sep 17 00:00:00 2001 From: tech189 Date: Mon, 17 Jan 2022 12:33:12 +0000 Subject: [PATCH 3/3] Fix "Not a scoop shim" in migrate script --- scripts/migrate-python-packages.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/migrate-python-packages.ps1 b/scripts/migrate-python-packages.ps1 index d5beb3e..5df7310 100644 --- a/scripts/migrate-python-packages.ps1 +++ b/scripts/migrate-python-packages.ps1 @@ -15,7 +15,7 @@ # -q, --quiet Do not write package names to console # -v, --verbose Display all output -$scoop_lib = "$(Split-Path (Split-Path (scoop which scoop)))\lib" +$scoop_lib = Join-Path (scoop prefix scoop) lib . "$scoop_lib\buckets.ps1" . "$scoop_lib\getopt.ps1" . "$scoop_lib\help.ps1"