Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1197
fil-profile run script.py
Active
Public
Actions
Authored by
ardumont
on Oct 5 2021, 5:53 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
# 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
()
Event Timeline
ardumont
created this paste.
Oct 5 2021, 5:53 PM
2021-10-05 17:53:07 (UTC+2)
ardumont
mentioned this in
T3625: Reduce git loader memory footprint
.
Log In to Comment