예제 #1
0
def PrintSEM(filepath):
    if(filepath and os.path.isfile(filepath)):
        s = open(filepath, "rb")
        SEM = PermissionApplyVariable(s)
        s.close()

        #now print it out.
        SEM.Print()
예제 #2
0
 def get_sessionid_from_permission_packet(self, identityfile):
     f = open(identityfile, 'rb')
     rslt = PermissionApplyVariable(f)
     f.close()
     rslt.Print()
     return rslt.SessionId