def doRun(self): self.sp = splitAndJoin.splitAndJoinCls(self.parent) src = 'J:\our-py-lib\CommonLib\src\kmxPyQt\devConsole3\DevConsolePlug_BIN' dst = 'c:\Temp\Packed\Dev.tar.gz' src2 = 'J:\our-py-lib\CommonLib\src\kmxPyQt\devConsole3\DevConsolePlug_BIN\Scripts' dst2 = 'c:\Temp\Packed\Scripts.tar.gz' dst3 = 'c:\Temp\Packed\Split' #self.sp.compress(src2,dst2) self.sp.split(dst2,dst3) #self.m = MyDropbox.MyDropboxCls(self.parent) #self.m.uploadFile(dst) pass
def doRun(self): if not os.path.exists(self.localDestination): os.makedirs(self.localDestination) if not os.path.exists(self.splittedLocation): os.makedirs(self.splittedLocation) if not os.path.exists(self.dropBoxSplittedLoc): os.makedirs(self.dropBoxSplittedLoc) self.splits = splitAndJoin.splitAndJoinCls(self.parent) self.splits.compress(self.srcLocation, self.zipFile) self.splits.split(self.zipFile, self.splittedLocation) self.copyEveryThing(self.splittedLocation, self.dropBoxSplittedLoc) print("packitCls is working fine")
def __init__(self,parent): self.parent=parent self.settings=self.parent.settings self.uiFile=SplitsAndCompress.__file__.replace(".py",".ui") super(SplitsAndCompressCls, self).__init__(self.parent) loadUi(self.uiFile, self) self.dp = MyDropbox.MyDropboxCls(self.parent) self.pushButton.clicked.connect(self.doCompress) self.pushButton_2.clicked.connect(self.doExtract) self.pushButton_3.clicked.connect(self.doSplit) self.pushButton_4.clicked.connect(self.doJoin) self.pushButton_5.clicked.connect(self.doDropbox) self.pushButton_6.clicked.connect(self.doDBRefresh) self.pushButton_7.clicked.connect(self.doDBDownload) self.pushButton_8.clicked.connect(self.doDBUpload) self.splitAndJoinObj = splitAndJoin.splitAndJoinCls(self.parent) p = os.path.join(os.getcwd(),'Downloaded') self.lineEdit_9.setText(p)