aboutsummaryrefslogtreecommitdiff
path: root/modules/calendar-sync.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/calendar-sync.el')
-rw-r--r--modules/calendar-sync.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/calendar-sync.el b/modules/calendar-sync.el
index 74b2e5c6..62d1b5f1 100644
--- a/modules/calendar-sync.el
+++ b/modules/calendar-sync.el
@@ -1282,7 +1282,8 @@ processes, not direct interactive use."
(defun calendar-sync--worker-command (ics-file output-file)
"Build the batch Emacs command that converts ICS-FILE to OUTPUT-FILE."
- (let ((private-config-file
+ (let ((module-dir (file-name-directory calendar-sync--module-file))
+ (private-config-file
(make-temp-name (expand-file-name "calendar-sync-worker-config-"
temporary-file-directory)))
(state-file
@@ -1294,6 +1295,7 @@ processes, not direct interactive use."
"--no-site-lisp"
"--eval" (format "(setq load-prefer-newer t calendar-sync-auto-start nil calendar-sync-private-config-file %S calendar-sync--state-file %S)"
private-config-file state-file)
+ "-L" module-dir
"-l" calendar-sync--module-file
"--eval" (format "(calendar-sync--batch-convert-file %S %S %S %S '%S)"
ics-file