# Process Create Path of Executable

**URL:** <https://swi-prolog.discourse.group/t/process-create-path-of-executable/3613>\
**Category:** Help!\
**Created:** [February 16, 2021, 8:02pm UTC](https://swi-prolog.discourse.group/t/process-create-path-of-executable/3613 "2021-02-16T20:02:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [February 17, 2021, 7:55am UTC](https://swi-prolog.discourse.group/t/process-create-path-of-executable/3613/4 "2021-02-17T07:55:11Z")

</div>

> [@EricGT](#):
>
> I suspect that
> 
> ```prolog
> ?- absolute_file_name(path(python),Path).
> 
> ```
> 
> will work on Windows and fail on Linux.

Note that Python seems to be found and started. create\_process/3 uses absolute\_file\_name/3 with the option `file_type(executable)` as well, which notably make it try and add the Windows executable extensions.

The OP’s problem is most likely with the environment variables (which are simply passed if noting is specified) or the working directory (which is also unchanged unless specified).

---

_[View the full topic](https://swi-prolog.discourse.group/t/process-create-path-of-executable/3613)._
