8000 default path and make executable (#104) · pycom/pycom-micropython-sigfox@9fb2548 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 9fb2548

Browse files
authored
default path and make executable (#104)
this way it is easier to run this script standalone
1 parent 5c818cb commit 9fb2548

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

esp32/get_idf_libs.py

100644100755
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/python
2+
13
import os
24
import sys
35
import argparse
@@ -6,8 +8,9 @@
68

79

810
def main():
11+
src_def = os.environ['IDF_PATH']+'/examples/wifi/scan/build'
912
cmd_parser = argparse.ArgumentParser(description='Get the precompiled libs from the IDF')
10-
cmd_parser.add_argument('--idflibs', default=None, help='the path to the idf libraries')
13+
cmd_parser.add_argument('--idflibs', default=src_def, help='the path to the idf libraries (' + src_def + ')')
1114
cmd_args = cmd_parser.parse_args()
1215

1316
src = cmd_args.idflibs

0 commit comments

Comments
 (0)
0