dirty workaround
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Torma Kristóf 2021-04-29 18:05:37 +02:00
parent 841c5d4c20
commit 6d2441d931
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,10 @@ class Executor:
def removeFileInCurrentDirectory(self, file: str) -> str:
file = self.sanitizeFile(file)
currentfile = os.path.join(self.baseDir, self.currentDirectory, file)
if self.currentDirectory == "":
currentfile = os.path.join(self.baseDir, file)
else:
currentfile = os.path.join(self.baseDir, self.currentDirectory, file)
if os.path.exists(currentfile):
os.remove(currentfile)
return currentfile