# How to run python crypte in RF

**URL:** <https://forum.robotframework.org/t/how-to-run-python-crypte-in-rf/7398>\
**Category:** Robot Framework\
**Created:** [7 June 2024 15:24 UTC](https://forum.robotframework.org/t/how-to-run-python-crypte-in-rf/7398 "2024-06-07T15:24:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![otmaneadmer](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/otmaneadmer/32/3956_2.png) [@otmaneadmer](https://forum.robotframework.org/u/otmaneadmer)\
**Post date:** [7 June 2024 15:24 UTC](https://forum.robotframework.org/t/how-to-run-python-crypte-in-rf/7398/1 "2024-06-07T15:24:05Z")

</div>

HEY ,  
i want run python script in my robot file  
i use this code but i can get output

Get Permission Value  
[Arguments] ${user} ${context} ${views}  
${command}= Set Variable python ${PERMISSION\_SCRIPT} ${user} ${context} ${views}  
${output}= Run ${command}  
Log ${output}  
[Return] ${output}

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [7 June 2024 16:33 UTC](https://forum.robotframework.org/t/how-to-run-python-crypte-in-rf/7398/2 "2024-06-07T16:33:37Z")

</div>

> [@otmaneadmer](#):
>
> Get Permission Value  
> [Arguments] ${user} ${context} ${views}  
> ${command}= Set Variable python ${PERMISSION\_SCRIPT} ${user} ${context} ${views}  
> ${output}= Run ${command}  
> Log ${output}  
> [Return] ${output}

Did you get any error?  
`Run` documentation recommends using `Run Process` from Process library. Try this:

```python
***Settings***
Library Process

***Keywords***
Get Permission Value
    [Arguments] ${user} ${context} ${views}
    ${command}= Set Variable python
    ${arguments}= Set Variable ${PERMISSION_SCRIPT} ${user} ${context} ${views}
    ${result}= Run Process ${command} ${arguments}
    Log ${result.output}
    RETURN ${result.output}
```
