changed file paths
This commit is contained in:
4
bot.py
4
bot.py
@@ -197,6 +197,10 @@ def main() -> None:
|
||||
action="store_true",
|
||||
help="Execute real orders (default is paper trading)",
|
||||
)
|
||||
# Always work relative to the script's own directory so that bot.log and
|
||||
# positions.json land in /opt/crypto-trader regardless of the caller's cwd.
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
config = Config()
|
||||
|
||||
Reference in New Issue
Block a user