def print_info(self): print("Python version:", platform.python_version()) print("Panda version: %s (%s) by %s (%s)" % (PandaSystem.getVersionString(), PandaSystem.getGitCommit(), PandaSystem.getDistributor(), PandaSystem.getBuildDate())) print("Panda Systems:") for system in PandaSystem.get_global_ptr().get_systems(): print("\t", system) print("Data type:", "double" if settings.use_double else 'float')
def analyze(self): """ Analyzes the user system. This should help debugging when the user shares his log. """ print "System analyzer:" def stat(name, *args): print " ", str(name).ljust(20, " "), "=", ''.join([str(i) for i in args]) stat("System", sys.platform, " / ", os.name) stat("Bitness", 8 * struct.calcsize("P")) stat("Panda3D-Build Date", PandaSystem.getBuildDate()) stat("Panda3D-Compiler", PandaSystem.getCompiler()) stat("Panda3D-Distributor", PandaSystem.getDistributor()) stat("Panda3D-Version", PandaSystem.getVersionString()) stat("Panda3D-GITCommit", PandaSystem.getGitCommit()) stat("Panda3D-Platform", PandaSystem.getPlatform()) stat("Panda3D-Official?", PandaSystem.isOfficialVersion())
def analyze(self): """ Analyzes the user system. This should help debugging when the user shares his log. """ print "System analyzer:" def stat(name, *args): print " ", str(name).ljust(20, " "), "=", ''.join( [str(i) for i in args]) stat("System", sys.platform, " / ", os.name) stat("Bitness", 8 * struct.calcsize("P")) stat("Panda3D-Build Date", PandaSystem.getBuildDate()) stat("Panda3D-Compiler", PandaSystem.getCompiler()) stat("Panda3D-Distributor", PandaSystem.getDistributor()) stat("Panda3D-Version", PandaSystem.getVersionString()) stat("Panda3D-GITCommit", PandaSystem.getGitCommit()) stat("Panda3D-Platform", PandaSystem.getPlatform()) stat("Panda3D-Official?", PandaSystem.isOfficialVersion())
def print_info(self): print("Python version:", platform.python_version()) print("Panda version: %s (%s)" % (PandaSystem.getVersionString(), PandaSystem.getGitCommit())) print("Data type:", "double" if settings.use_double else 'float')