this post was submitted on 12 Mar 2025
10 points (100.0% liked)

Programming

19061 readers
138 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

So, I'm making an install.sh script to download script files from GitHub to the user's system. I know downloading to the home directory (~/script_dir/) is typically frowned upon.

For context, this is a directory containing python files, README, requirements, etc. pip dependencies need to be installed before launch. The script would be executed through main.py.

Where would be a good place to download to that won't clutter the user's home directory?

Edit: The script is a CLI interface for yt-dlp to make it easier to use. So, it will download files to specified directories on the user's system.

Edit 2: Appreciate the responses. I forgot to mention this script has a config file it uses for certain parameters, such as default download directory for each category. If a config file doesn't exist it creates one in the script's directory and dumps the default values from a default config file (YAML).

Some of you are mentioning this could be a PyPI package. Would I still be able to read/write my config files if I made this a PyPI package?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 week ago

Updated the post to include more info, but it is a CLI app which helps simplify yt-dlp commands. It doesn't mess with any system files.