forked from Shinonome/dots-hyprland
Use venv for python script
This commit is contained in:
@@ -325,7 +325,9 @@ main() {
|
||||
|
||||
detect_scheme_type_from_image() {
|
||||
local img="$1"
|
||||
source "$(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate"
|
||||
"$SCRIPT_DIR"/scheme_for_image.py "$img" 2>/dev/null | tr -d '\n'
|
||||
deactivate
|
||||
}
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env -S\_/bin/sh\_-c\_"source\_\$(eval\_echo\_\$ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate&&exec\_python\_-E\_"\$0"\_"\$@""
|
||||
|
||||
import argparse
|
||||
import cv2
|
||||
|
||||
Reference in New Issue
Block a user