Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • Stranger Tools Stranger Tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 288
    • Issues 288
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • alyaalya
  • Stranger ToolsStranger Tools
  • Wiki
  • Ansa tools documentation
  • Running Python scripts in Ansa

Running Python scripts in Ansa · Changes

Page history
Update Ansa tools documentation/Running Python scripts in Ansa authored Feb 02, 2021 by Samuel Gomez's avatar Samuel Gomez
Hide whitespace changes
Inline Side-by-side
Ansa-tools-documentation/Running-Python-scripts-in-Ansa.md 0 → 100644
View page @ d3de31ff
## Using the GUI
First we click in the Script button. Then we have two options available to run a script in the graphical interface:
* Load Script.
* Run function.
## From the terminal
In order to run a python script from the terminal we have to add -execpy 'load_script:python_script.py' when launching Ansa. Where we should substitute python_script by the actual script path.
`/path/to/Ansa/ansa64.sh -execpy 'load_script:python_script.py'`
Additionally, we can use -nogui option if access to the GUI is not required after the script execution.
`/path/to/Ansa/ansa64.sh -execpy 'load_script:python_script.py'`
\ No newline at end of file
Clone repository
  • Ansa tools documentation
    • Ansa2mpio inputs
    • Ansa2mpio
    • Running Python scripts in Ansa
  • _sidebar
  • Home
  • pyAlya documentation
    • Alya Python module