|
[Sponsors] |
[General] Transfer variables into python script from bash-shell |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 3, 2015, 04:33 |
Transfer variables into python script from bash-shell
|
#1 |
New Member
Join Date: Nov 2015
Location: GER
Posts: 10
Rep Power: 11 |
Hello to all,
today my issue is the integration of variables in python script. I would like to transfer a few variables from bash to a python script witch is traced with ParaView 4.4.0. In a former version of ParaView (3.89) I've had the following commands: in bash (.sh): pathTo/pvbatch --use-offscreen-rendering pathTo/pythonScript.py $variable1 constant $variable2 ... in python script (.py): import sys try: paraview.simple except: from paraview.simple import * nameVariable1 = sys.argv [1] nameConstant = sys.argv [2] nameVariable2 = sys.argv [3] ... But if I use these in .py version 4.4.0 it shows an error concerning "argv". Do you know what I have missed or how I can do it in a different way? Thanx! Regards, cfdFreshman |
|
Tags |
bash, constant, python, variable |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Using python script for automatic post processing of openFoam | vPaquet | ParaView | 12 | December 16, 2021 04:30 |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 05:49 |
[General] Generating isosurface from vtk file with python script | Leios | ParaView | 1 | March 26, 2018 13:33 |
[General] Get data from Calculator filter in python script | taalf | ParaView | 17 | February 15, 2018 05:53 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 08:00 |