-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added utility for symlinks creation before build
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |