From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joao Cortes Subject: Python source block and :dir header arg Date: Mon, 1 Apr 2019 17:06:36 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hB0OW-0004cw-HF for emacs-orgmode@gnu.org; Mon, 01 Apr 2019 13:06:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hB0OS-0002rd-Q5 for emacs-orgmode@gnu.org; Mon, 01 Apr 2019 13:06:48 -0400 Received: from mail-oln040092065089.outbound.protection.outlook.com ([40.92.65.89]:17730 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hB0OQ-0002p1-Tv for emacs-orgmode@gnu.org; Mon, 01 Apr 2019 13:06:44 -0400 Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" Consider the following python source block, =20 #+begin_src python :results output : session :dir ./run import os; cwd =3D os.getcwd() print(cwd) #+end_src The dir header arg should change the directory used to run the session, in this case to the directory "../base/run", where "base" is the parent directory the file visited by the current buffer. Instead, I get "../base". Is this a bug? Thank you Joao Cortes