emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Python source block and :dir header arg


From: stardiviner
Subject: Re: [O] Python source block and :dir header arg
Date: Fri, 05 Apr 2019 11:07:50 +0800
User-agent: mu4e 1.1.0; emacs 27.0.50

Joao Cortes <address@hidden> writes:

> 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?

It works fine in my machine. It print absolute path to "/run".

>
> Thank you
> Joao Cortes


-- 
[ stardiviner ]
       I try to make every word tell the meaning what I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      



reply via email to

[Prev in Thread] Current Thread [Next in Thread]