2010-07-08, 10:02
I found a strange problem with the following Python Code (Link above)
http://code.google.com/p/swiss-army-knif...default.py
On Line 73 I do create modul gloabl variable called __jobs__
and the value should be 0 on startup.
without the statement on line 217 the statement on line 283 fails.
The error-log says that I would use a local var but this is not true.
If I remove the 217 the code fails ....
Any hint ?
I allready use global variables inside the code
__enable_bluray__
__enable_network__
__enable_burning__
__enable_customer__
And I can use them without any problem ...
I did a try to insert the following statement (Line 217)
global __jobs__
No difference ... He sais allways the var __jobs__ is local ...
http://code.google.com/p/swiss-army-knif...default.py
On Line 73 I do create modul gloabl variable called __jobs__
and the value should be 0 on startup.
without the statement on line 217 the statement on line 283 fails.
The error-log says that I would use a local var but this is not true.
If I remove the 217 the code fails ....
Any hint ?
I allready use global variables inside the code
__enable_bluray__
__enable_network__
__enable_burning__
__enable_customer__
And I can use them without any problem ...
I did a try to insert the following statement (Line 217)
global __jobs__
No difference ... He sais allways the var __jobs__ is local ...