From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mPHXIDcxqGQsAwAASxT56A (envelope-from ) for ; Fri, 07 Jul 2023 17:37:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CPD2HzcxqGQF9wAAG6o9tA (envelope-from ) for ; Fri, 07 Jul 2023 17:37:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F3FE91FD81 for ; Fri, 7 Jul 2023 17:37:26 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=netc.fr header.s=mailo header.b=QXGnBLJ8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=netc.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688744247; a=rsa-sha256; cv=none; b=cpkvCR220DFL6H6qyneiVKrsu3hTTB01IhfvcKpW49VaIsLWETkzTP42F5QNSWu1Ezskwl 3NlyCnz8Ykwin+WTUL2Uj7ijb4eb/fwkprpoXVFqYuAslEc2AXeSc5yzC1lEj1AdL9xKUT +l1kjtqWprheyAPnV6+flakVfLx0bi8CiqE7knAQqjDSsqxPqpOSDMpz7Y3vvDtq3xw2RM 94/4E4He5z20y8RCetJrlDcr2H+gxg1/apSrQu2yXqtj22pDGgeHglmLv4BsJCVBhVds32 sWrRgxdE9eALOL7+bJq/A4kMhQQlEqDboaY/NBwKwDjz3c+5a+QHZeKP3Wn4gg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=netc.fr header.s=mailo header.b=QXGnBLJ8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=netc.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688744247; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ebf3nb1e5Qh9hsdsFJafQfvGCwyuUQsP+/lyGey4+qw=; b=uHKTA+dM329NwbEMfNtLFtvff1UDGnQ6AK0Xm6CBSZ23oCsy0TXuvxbBX/+pTpQClA5XWt hz4wnBiyOBulWBWfYMFqoudtG2lTV5mTx9sz1/IiXcnpSlZ+kxV+IWIF/GmU0+boB3Ap/8 kxyeWBXgWz8O0W2FzelNUn+85ducwieI2c5/m8VkDag+bajhziXrqx7HOPHwOseQiCTMz3 2CWFbJEIZPQIYzkiBYp7ozgNI0RTxat8mlm8JAK5ih9jDF0t/JBXQOHUj8uRe+ycPAH10L cyxLjNWG1VXY3w2fUjXiwpJzaGeH3Pw8D50B7rtD4biaHhroEjAK+eqzLu5cgg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHnVY-0007HY-2P; Fri, 07 Jul 2023 11:36:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHnVW-0007H9-C9 for emacs-orgmode@gnu.org; Fri, 07 Jul 2023 11:36:30 -0400 Received: from msg-2.mailo.com ([213.182.54.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHnVU-0003zz-3F for emacs-orgmode@gnu.org; Fri, 07 Jul 2023 11:36:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=netc.fr; s=mailo; t=1688744183; bh=zoRm404hXU+S1D4EGwi6fLodAR3jmuckfSC4RyFF/X4=; h=X-EA-Auth:From:To:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:Content-Type; b=QXGnBLJ8IL69wENGo7y7fKWRA1juc3SSJ8mG8Gd7Eub1ocJO08MmPyWoGkxHqusmA 0QZYHFViPJW+Dy7yr56UIGNOuoA5nTyUfiEhb+qj5p4yosi3ATjYnoxQj/rxZnDOhy terizCyFcVQYNpTS114bjJmXnOPKhgPoUgfeUUU0= Received: by b221-4.in.mailobj.net [192.168.90.24] with ESMTP via ip-20.mailobj.net [213.182.54.20] Fri, 7 Jul 2023 17:36:23 +0200 (CEST) X-EA-Auth: Wbm9RuZCa7nFL05jKSGKTLFivhHpTMlpCgSYOF90CbjVcv8MUbGlHsTxxacksPNG0AkRx1zgtCNV89SRqnS2SyPd5YUpjI6QdbPVtuSrHZM= From: Dominique Dumont To: emacs-orgmode@gnu.org Subject: eval with :dir in included file Date: Fri, 07 Jul 2023 17:36:23 +0200 Message-ID: <3508734.iIbC2pHGDl@ylum> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: pass client-ip=213.182.54.12; envelope-from=dominique.dumont@netc.fr; helo=msg-2.mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 0.53 X-Migadu-Queue-Id: F3FE91FD81 X-Spam-Score: 0.53 X-TUID: j5sUHzLI+EeL Hi I have a file with this code block: ~~~ file terraform-admin.org ** Retrieve public IPs :PROPERTIES: :CUSTOM_ID: retrieve-public-ips :END: #+begin_src shell :results verbatim :dir "stacks/public-ips" :exports both terragrunt output ips #+end_src ~~~ Exporting this file works fine. I have another file which imports the file above: ~~~ #+include: "../../../infra-terraform/terraform-admin.org::#retrieve-public-ips" :only-contents t ~~~ Here the export fails with this (slightly edited) error: process-file: Setting current directory: No such file or directory, /home/domi/Documentation/admin/stacks/public-ips/ Indeed this directory does not exist: org-mode is looking for "stacks/public-ips" directory in the wrong place, i.e. org-mode is starting to search "stacks/public-ips" from the *including* file. Is there a way to tell org-mode to search "stacks/public-ips" directory starting from the directory of the *included* file ? All the best Dominique