kellan on Nostr: So I always setup my Python projects using venv. And then sometimes I want to use ...
So I always setup my Python projects using venv. And then sometimes I want to use them as clis and I hand roll a small shell script, but every time I can't wonder if there's a better way?
(example shell script for the curious)
#!/bin/bash
source /path/to/proj/venv/activate
name_of_script "$@"
Published at
2024-06-08 20:07:03Event JSON
{
"id": "fbc00d676f2f2288bf2436558bc919c8637eacbc1acccdb5a96a26ad83807254",
"pubkey": "ccfb96ab1d6235ea54f6da2ba6ccc475a9dc6ae4a9505b6a6c587884497448a4",
"created_at": 1717877223,
"kind": 1,
"tags": [
[
"proxy",
"https://fiasco.social/users/kellan/statuses/112582801749549631",
"activitypub"
]
],
"content": "So I always setup my Python projects using venv. And then sometimes I want to use them as clis and I hand roll a small shell script, but every time I can't wonder if there's a better way?\n\n(example shell script for the curious)\n#!/bin/bash\nsource /path/to/proj/venv/activate\nname_of_script \"$@\"",
"sig": "d80855531e91bf8586a325739035a0a4dd0d7de608aba92cdf2799c79baaa2979add71fb96a67fa91db3486c3ef4a02421342e68e6f78eb7d7ca2d9e0cfc1ce1"
}