Add .config files
This commit is contained in:
parent
5753b14e3f
commit
8efbfd0164
4 changed files with 97 additions and 0 deletions
19
.config/zed/initPython.sh
Normal file
19
.config/zed/initPython.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Überprüfen, ob pyrightconfig.json existiert, wenn nicht, erstelle es mit dem angegebenen Inhalt
|
||||
if [ ! -f "pyrightconfig.json" ]; then
|
||||
echo '{"venvPath": ".", "venv": ".venv"}' > pyrightconfig.json
|
||||
fi
|
||||
|
||||
# Überprüfen, ob das Verzeichnis .venv existiert, wenn nicht, erstelle ein virtuelles Python-Umfeld
|
||||
if [ ! -d ".venv" ]; then
|
||||
python3 -m venv .venv
|
||||
fi
|
||||
|
||||
# Überprüfen, ob requirements.txt existiert, wenn nicht, erstelle eine leere Datei
|
||||
if [ ! -f "requirements.txt" ]; then
|
||||
touch requirements.txt
|
||||
fi
|
||||
|
||||
# Überprüfen, ob requirements.txt nicht leer ist, wenn nicht, installiere die Anforderungen
|
||||
if [ -s "requirements.txt" ]; then
|
||||
./.venv/bin/pip install -r requirements.txt
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue