This commit is contained in:
ilkeral
2025-07-21 13:49:36 +03:00
commit 342f1314c7
57 changed files with 9297 additions and 0 deletions

View File

@ -0,0 +1,19 @@
def read_requirements_file(self, binary=False):
"""
Requirements dosyasını oku
binary=True ise binary modda okur
"""
try:
command = f'cat "{self.project_path}/req.txt"'
stdin, stdout, stderr = self.client.exec_command(command)
if binary:
# Binary modda oku
return stdout.read()
else:
# Text modda oku
return stdout.read().decode('utf-8', errors='replace')
except Exception as e:
logger.exception("req.txt okunamadı")
return None