About eg.globals...

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

About eg.globals...

Post by krambriw » Sun Jan 13, 2008 9:01 am

Hi,
I have tried to find out if its possible to delete a global from the script once it is created but I cannot find any hint on that.

Like the following;
Creation is simple
eg.global.test = 100

But how to destroy/delete?

eg.global.test.destroy() or similar???

Thanks for any help

Best regards, Walter

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: About eg.globals...

Post by Pako » Sun Jan 13, 2008 11:14 am

krambriw wrote: But how to destroy/delete?
Simply:

Code: Select all

del eg.globals.test
Pako

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: About eg.globals...

Post by krambriw » Sun Jan 13, 2008 12:10 pm

Pako, thanks a lot

BestR Walter

Post Reply