init_var()

I made an init_var function that matches the init_pref function, only
for runtime variables.
This commit is contained in:
Bryan Schumaker 2010-10-30 13:40:06 -04:00
parent 3de6e94db1
commit 3087eb9954
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ def init_pref(key, value):
if prefs.get(key, None) == None:
prefs[key] = value
def init_var(key, value):
global vars
if vars.get(key, None) == None:
vars[key] = value
def startup():
global plugin