local commits on remote computer
| | |
| | | self.connected=True |
| | | # except: |
| | | # print("Error establishing connection with "+self.username+"@"+self.hostname+":"+str(self.port)+".") |
| | | # self.connected=False |
| | | # exit(1) |
| | | else: |
| | | print("Already connected!") |
| | |
| | | def setMaindir(self,prefix,variables): |
| | | maindir="" |
| | | for p,v in zip(prefix,variables): |
| | | if(v=="xk0"): |
| | | tv=str(round(float(self.Tape.config[v]))) |
| | | if sys.version_info<(3,0): |
| | | tv=str(int(float(self.Tape.config[v]))) |
| | | else: |
| | | tv=self.Tape.config[v] |
| | | #if(v=="xk0"): |
| | | # tv=str(round(float(self.Tape.config[v]))) |
| | | # if sys.version_info<(3,0): |
| | | # tv=str(int(float(self.Tape.config[v]))) |
| | | #else: |
| | | tv=str(self.Tape.config[v]) |
| | | maindir=maindir+p+tv |
| | | self.maindir=maindir |
| | | return |