Skip to content

Commit

Permalink
Supressed calls to env that are not yet available in after_install.py
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Alinei <[email protected]>
  • Loading branch information
jalinei committed Feb 21, 2024
1 parent c1342b8 commit 5d62a39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/after_install.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 5d62a39

Please sign in to comment.