Adding dynamic interpreter selector and real script path finding
This commit is contained in:
8
main.py
Normal file → Executable file
8
main.py
Normal file → Executable file
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import json
|
||||
|
||||
@@ -5,10 +7,10 @@ import requests
|
||||
|
||||
import config
|
||||
|
||||
|
||||
DOCKER_COMPOSE_PATH = config.portainer_compose_dir + '/{}/docker-compose.yml'
|
||||
BASH_COMPANION_SCRIPT = os.getcwd() + '/docker_updater.sh'
|
||||
REPO_UPDATER_SCRIPT = os.getcwd() + '/update_repos.sh'
|
||||
SCRIPT_DIR = os.path.dirname(__file__)
|
||||
BASH_COMPANION_SCRIPT = f'{SCRIPT_DIR}/docker_updater.sh'
|
||||
REPO_UPDATER_SCRIPT = f'{SCRIPT_DIR}/update_repos.sh'
|
||||
|
||||
|
||||
class PortainerClient:
|
||||
|
||||
Reference in New Issue
Block a user