Skip to content

Commit

Permalink
tweak(ci): simplify minemacs-root-dir deduction
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 30, 2023
1 parent c16c71d commit 988463d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/scripts/ci-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@

(message "Running MinEmacs in CI mode, loading all packages.")

(let ((root-dir (file-name-directory ;; ./../../../ -> minemacs-root-dir
(directory-file-name
(file-name-directory
(directory-file-name
(file-name-directory
(directory-file-name
(file-name-directory load-file-name)))))))))
(message "Calculated root directory is \"%s\"" default-directory)
(let ((root-dir (expand-file-name (concat (file-name-directory (or load-file-name buffer-file-name)) "../../../"))))
(message "Calculated root directory is \"%s\"" root-dir)
(message "Loading \"early-init.el\"")
(load (expand-file-name "early-init.el" root-dir))

Expand Down

0 comments on commit 988463d

Please sign in to comment.