Hello,

Eric S Fraga <esfli...@gmail.com> writes:

> On Thursday, 16 Nov 2017 at 22:40, Nicolas Goaziou wrote:
>> Hello,
>>
>> Eric S Fraga <esfli...@gmail.com> writes:
>>
>>> The proper solution would be to update ob-gnuplot to change the working
>>> directory at every invocation of gnuplot to be the directory where the
>>> org file is found.  (gnuplot has a "cd" command for this purpose)
>>
>> Would you like to propose a patch for that? BTW should the new working
>> directory be Org file's or :file, or even :dir?
>
> Nicolas,
>
> can you please advise on how to get the directory the originating org
> file may lie in from within org-babel-expand-body:gnuplot?

No idea. 

  (and (buffer-file-name) (file-name-directory (buffer-file-name)))

?

The originating Org file may not exist.

Regards,

-- 
Nicolas Goaziou

Reply via email to