mirror of
https://github.com/Ascyii/scripts.git
synced 2026-01-01 04:44:24 -05:00
Init
This commit is contained in:
14
shell/update_stud.sh
Executable file
14
shell/update_stud.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd ~/projects/studCrawl
|
||||
|
||||
# List your dependencies here (space-separated, Nix/Nixpkgs attribute names)
|
||||
PYTHON_DEPS="requests beautifulsoup4"
|
||||
|
||||
# Optional: set path to your main script
|
||||
SCRIPT="src/just_update.py"
|
||||
|
||||
# Call nix-shell with your dependencies; -p means "with these packages in environment"
|
||||
nix-shell -p "python3.withPackages (ps: with ps; [ $PYTHON_DEPS ])" --run "python3 $SCRIPT"
|
||||
Reference in New Issue
Block a user