Skip to content

Commit

Permalink
added utility for symlinks creation before build
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Apr 9, 2024
1 parent 065221c commit 05faff8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions prebuild.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# pre-build script for symbolic lynks generation

import os
import os.path

example_lib_dir = "examples/espcamlib"
dst = "examples/espcamlib/src"
src = "../../src"

os.makedirs(example_lib_dir, 0o755, True)

if not os.path.exists(dst):
os.symlink(src, dst)

print("Symbolic link created successfully")

0 comments on commit 05faff8

Please sign in to comment.