From 5d62a39f5c4ab03b0c5515152c0b800954bcadef Mon Sep 17 00:00:00 2001
From: Jean Alinei <jean.alinei@laas.fr>
Date: Wed, 21 Feb 2024 18:04:44 +0100
Subject: [PATCH] Supressed calls to env that are not yet available in
 after_install.py

Signed-off-by: Jean Alinei <jean.alinei@laas.fr>
---
 scripts/after_install.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/after_install.py b/scripts/after_install.py
index 23b32614..ab6188e3 100644
--- a/scripts/after_install.py
+++ b/scripts/after_install.py
@@ -1,14 +1,14 @@
 import os
 import shutil
 
-env = DefaultEnvironment()
-
 zephyr_path = os.path.join(".", "zephyr")
+print(zephyr_path)
 owntech_path = os.path.join(".", "owntech")
+print(owntech_path)
 if not os.path.isdir(owntech_path):
     os.mkdir(owntech_path)
 
-lib_path = os.path.join(".", "owntech", "lib", env.Dump("PIOENV").strip("''"), "core")
+lib_path = os.path.join(".", "lib", "owntech_core")
 print(lib_path)
 
 shutil.move(os.path.join(lib_path, "zephyr"), zephyr_path)