1
0
mirror of https://github.com/Rikj000/MoniGoMani.git synced 2022-03-06 00:08:05 +03:00

FreqtradeCli Nested freqtrade installation found checks

This commit is contained in:
Rikj000
2021-08-16 23:25:33 +00:00
committed by GitHub
parent 59146fd56f
commit 4b7c36a1eb

View File

@@ -73,13 +73,10 @@ class FreqtradeCli():
:return bool: True if freqtrade installation
is found and property is set. False otherwise.
"""
if os.path.exists('{0}/.env/bin/freqtrade'.format(self.basedir)) is False:
if (os.path.exists('{0}/.env/bin/freqtrade'.format(self.basedir)) is False) or (self.install_type is None):
self.cli_logger.warning('🤷♂️ No Freqtrade installation found.')
return False
if self.install_type is None:
return False
self.freqtrade_binary = self._get_freqtrade_binary_path(self.basedir, self.install_type)
self.cli_logger.debug('👉 Freqtrade binary: `{0}`'.format(