Page MenuHomeSoftware Heritage
Paste P1197

fil-profile run script.py
ActivePublic

Authored by ardumont on Oct 5 2021, 5:53 PM.
# to run in venv ve with "fil-profile run script.py"
import os
import subprocess
def main():
os.environ["SWH_CONFIG_FILENAME"] = "/etc/softwareheritage/loader_git.yml"
cmd = "swh loader run git https://github.com/hylang/hy" # <--- change origin here
subprocess.run(cmd.split())
main()