Generally, to import a python module programatically when you know the file's path, you could do something like this:
import importlib.util
import sys
# ~/.config/git/config
[sendemail]
confirm = auto
smtpServer = smtp.gmail.com
smtpServerPort = 587
smtpEncryption = tls
smtpUser = <gmail email address>
import os | |
import sys | |
from xml.sax import parse | |
from xml.sax.saxutils import XMLGenerator | |
class CycleFile(object): | |
def __init__(self, filename): | |
self.basename, self.ext = os.path.splitext(filename) | |
self.index = 0 |
version: '3.6' | |
volumes: | |
certs-repo: | |
driver: s3fs | |
name: "certs" | |
services: | |
nginx: | |
image: registry.mydomain.com/letsencrypt:1.19.3 |