Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: mean on January 18, 2014, 09:38:54 AM

Title: Passing parameter to tinypy script
Post by: mean on January 18, 2014, 09:38:54 AM
Available from version >= r9003
It will change later on, just a quick hack for the moment

1- From avidemux : Call it with --var key=value
2- From a tinypy script

myos=os()
value=myos.environ("key")


In a case you did not set key, you 'll get an empty string as return value

Title: Re: Passing parameter to tinypy script
Post by: I12learn on January 19, 2014, 05:23:29 PM
I'm going to get r9003.
At the pace of new release probably I  should keep the git so the update won't need to download the entire github.
Title: Re: Passing parameter to tinypy script
Post by: mean on January 20, 2014, 07:40:55 AM
With next update (i.e. post 9003) it will be like regular python
i.e.

import os
val=os.environ("foo")