From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Joao Cortes <joaooneillcortes@outlook.pt>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Python source block and :dir header arg
Date: Mon, 1 Apr 2019 14:12:46 -0400 [thread overview]
Message-ID: <CAJ51ETqQ+Jxe6EHisLcrdD_T3K9j0qEB+yTCfW3dL8bv2KGuJA@mail.gmail.com> (raw)
In-Reply-To: <AM6PR07MB572038EDFBD8486E3F6CB0A9A3550@AM6PR07MB5720.eurprd07.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 901 bytes --]
You might need to provide some additional information about your setup
(org-version, etc.). This works for me in org 9.1.9.
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
On Mon, Apr 1, 2019 at 1:07 PM Joao Cortes <joaooneillcortes@outlook.pt>
wrote:
> Consider the following python source block,
>
> #+begin_src python :results output : session :dir ./run
> import os;
> cwd = 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
>
>
[-- Attachment #2: Type: text/html, Size: 1570 bytes --]
next prev parent reply other threads:[~2019-04-01 18:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-01 17:06 Python source block and :dir header arg Joao Cortes
2019-04-01 18:12 ` John Kitchin [this message]
2019-04-01 18:23 ` Joao Cortes
2019-04-01 18:16 ` Joao Cortes
2019-04-02 15:59 ` John Kitchin
2019-04-03 17:31 ` Joao Cortes
2019-04-05 14:34 ` John Kitchin
2019-04-05 3:07 ` stardiviner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ51ETqQ+Jxe6EHisLcrdD_T3K9j0qEB+yTCfW3dL8bv2KGuJA@mail.gmail.com \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=joaooneillcortes@outlook.pt \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).