diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 1407ed277a..4e740387b2 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -97,7 +97,7 @@ def usage(problem): def parseopts(args): global INSTALLER,RUNTIME,GENMAN,DISTRIBUTOR - global VERSION,COMPRESSOR,VERBOSE,THREADCOUNT,VERBOSE + global VERSION,COMPRESSOR,THREADCOUNT longopts = [ "help","distributor=","verbose", "optimize=","everything","nothing","installer","runtime", @@ -530,8 +530,7 @@ IncDirectory("ALWAYS", GetOutputDir()+"/include") ######################################################################## def printStatus(header,warnings): - global VERBOSE - if VERBOSE: + if GetVerbose(): print "" print "-------------------------------------------------------------------" print header diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 1535ce2b27..c1b6c425bf 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -712,6 +712,9 @@ def SetOptimize(optimize): global OPTIMIZE OPTIMIZE=optimize +def GetVerbose(): + return VERBOSE + def SetVerbose(verbose): global VERBOSE VERBOSE=verbose