News:

--

Main Menu

Passing parameter to tinypy script

Started by mean, January 18, 2014, 09:38:54 AM

Previous topic - Next topic

mean

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


I12learn

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.

mean

With next update (i.e. post 9003) it will be like regular python
i.e.

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