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

change 'source' to '.' for POSIX compliance

This commit is contained in:
perfectra1n
2021-12-26 12:58:51 -08:00
parent 559d44991c
commit 974b8d23b4
4 changed files with 5 additions and 5 deletions

2
.hurry
View File

@@ -1,7 +1,7 @@
config: config:
username: MoniGoMani Community username: MoniGoMani Community
exchange: binance exchange: binance
ft_binary: source ./.env/bin/activate; freqtrade ft_binary: . ./.env/bin/activate; freqtrade
hyperopt: hyperopt:
epochs: 1000 epochs: 1000
loss: MGM_WinRatioAndProfitRatioHyperOptLoss loss: MGM_WinRatioAndProfitRatioHyperOptLoss

View File

@@ -450,7 +450,7 @@ class MGMHurry:
""" """
if answers.get('install_type') == 'source': if answers.get('install_type') == 'source':
ft_binary = f'source {self.basedir}/.env/bin/activate; freqtrade' ft_binary = f'. {self.basedir}/.env/bin/activate; freqtrade'
else: else:
ft_binary = 'docker-compose run --rm freqtrade' ft_binary = 'docker-compose run --rm freqtrade'
""" """
@@ -458,7 +458,7 @@ class MGMHurry:
'config': { 'config': {
'username': answers.get('username'), 'username': answers.get('username'),
'install_type': 'source', # answers.get('install_type'), 'install_type': 'source', # answers.get('install_type'),
'ft_binary': f'source {self.basedir}/.env/bin/activate; freqtrade', # ft_binary, 'ft_binary': f'. {self.basedir}/.env/bin/activate; freqtrade', # ft_binary,
'timerange': answers.get('timerange'), 'timerange': answers.get('timerange'),
'exchange': exchange or 'none', 'exchange': exchange or 'none',
'hyperopt': { 'hyperopt': {

View File

@@ -78,7 +78,7 @@ fi
# switch to freqtrade venv # switch to freqtrade venv
cd ${FQT_DIR}; cd ${FQT_DIR};
source .env/bin/activate ; . .env/bin/activate ;
# loop through exchanges # loop through exchanges
for EXCHANGE in ${EXCHANGES[@]} for EXCHANGE in ${EXCHANGES[@]}

View File

@@ -328,7 +328,7 @@ class FreqtradeCli:
freqtrade_binary = 'docker-compose run --rm freqtrade' freqtrade_binary = 'docker-compose run --rm freqtrade'
if install_type == 'source': if install_type == 'source':
freqtrade_binary = f'source {basedir}/.env/bin/activate; freqtrade' freqtrade_binary = f'. {basedir}/.env/bin/activate; freqtrade'
return freqtrade_binary return freqtrade_binary