sys.name

Here are the examples of the python api sys.name taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

3 Source : parser_controller.py
with MIT License
from grebtsew

    def get_system_index(self, name):
        res = 0
        for sys in self.system_reference_array:
            if(sys.name ==  name):
                return res
            res += 1

        return None

    def call_start(self, args = None):

0 Source : parser_controller.py
with MIT License
from grebtsew

    def call_status(self):
        print()
        print("----- Show Systems and info below -----")
        print()

        if(len(self.system_reference_array) > 0 ):
            for sys in self.system_reference_array:
                print ("----------------------------------------")
                print(" ----- System id: " + str(sys.name) + " ----- ")
                print("Amount of camera sources: " + str(sys.reference_length))
                for cam in range(0,sys.reference_length):
                    print(" ----- Camera id : " + str(cam) +" -----")
                    settings = sys.setting[cam]
                    print("Active functions: ")
                    temp = 0
                    for b in settings:
                        if b == True:
                            print(shared_variables.SETTINGS(temp).name)

                        temp += 1

                print("----------------------------------------")
        else:
            print("No running systems")

    def call_kill(self,args):