type
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from targets import *
|
from targets import *
|
||||||
from targets.BankTarget import BankTarget
|
from targets.BankTarget import BankTarget
|
||||||
|
|
||||||
|
|
||||||
class TargetFactory:
|
class TargetFactory:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def createAllTargets():
|
def createAllTargets():
|
||||||
@@ -8,7 +9,7 @@ class TargetFactory:
|
|||||||
glo = globals() # Save globals so the dict does not change during execution of the script
|
glo = globals() # Save globals so the dict does not change during execution of the script
|
||||||
|
|
||||||
for key in glo:
|
for key in glo:
|
||||||
if type(glo[key]) != 'class':
|
if type(glo[key]) is type:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
target = glo[key]
|
target = glo[key]
|
||||||
|
|||||||
Reference in New Issue
Block a user