Skip to content

Commit 87946d5

Browse files
committed
Fix load path once agina
1 parent 38304f4 commit 87946d5

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

lisp/clean.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
;;; Code:
1515

16-
(load-file (expand-file-name "_prepare.el" (file-name-directory (car (last command-line-args)))))
16+
(load-file (expand-file-name
17+
"_prepare.el"
18+
(file-name-directory (nth 1 (member "-scriptload" command-line-args)))))
1719

1820
(eask-start
1921
(ignore-errors (delete-directory user-emacs-directory t)))

lisp/install.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919

2020
;;; Code:
2121

22-
(load-file (expand-file-name "_prepare.el" (file-name-directory (car (last command-line-args)))))
22+
(load-file (expand-file-name
23+
"_prepare.el"
24+
(file-name-directory (nth 1 (member "-scriptload" command-line-args)))))
2325

2426
(eask-start
2527
(package-initialize)

lisp/list.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515

1616
;;; Code:
1717

18-
(load-file (expand-file-name "_prepare.el" (file-name-directory (car (last command-line-args)))))
18+
(load-file (expand-file-name
19+
"_prepare.el"
20+
(file-name-directory (nth 1 (member "-scriptload" command-line-args)))))
1921

2022
(defvar eask-list-package-name-width nil
2123
"Width spaces for the package name.")

lisp/upgrade.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919

2020
;;; Code:
2121

22-
(load-file (expand-file-name "_prepare.el" (file-name-directory (car (last command-line-args)))))
22+
(load-file (expand-file-name
23+
"_prepare.el"
24+
(file-name-directory (nth 1 (member "-scriptload" command-line-args)))))
2325

2426
(defun eask-package-version (name where)
2527
"Get version of the package by NAME.

0 commit comments

Comments
 (0)