diff --git a/.idea/misc.xml b/.idea/misc.xml index da7a2ee3..bf5a9fa2 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,7 +3,7 @@ - + diff --git a/.idea/pwnagotchi.iml b/.idea/pwnagotchi.iml index faf8598a..67a8fbf3 100644 --- a/.idea/pwnagotchi.iml +++ b/.idea/pwnagotchi.iml @@ -4,7 +4,7 @@ - + diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index e529e3e6..b5db680c 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -139,7 +139,9 @@ def install(display, update): source_path = "%s-%s" % (source_path, update['available']) # setup.py is going to install data files for us - os.system("cd %s && pip3 install . --break-system-packages" % source_path) + # first we create a new virtual environment and activate it + os.system("cd %s && python3 -m venv env && source env/bin/activate" % source_path) + os.system("cd %s && pip3 install ." % source_path) return True