Skip to content

Commit 7351a89

Browse files
authored
Merge pull request espressif#104 from adafruit/symlink-with-library-name
make symlink with library name rather than 'Adafruit_Test_Library'
2 parents 63b7c7e + f1a8355 commit 7351a89

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: build_platform.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,6 @@ def run_or_die(cmd, error):
183183
" > /dev/null", "FAILED to update core indecies")
184184
print()
185185

186-
# link test library folder to the arduino libraries folder
187-
if not IS_LEARNING_SYS:
188-
try:
189-
os.symlink(BUILD_DIR, os.environ['HOME']+'/Arduino/libraries/Adafruit_Test_Library')
190-
except FileExistsError:
191-
pass
192-
193186
################################ Install dependancies
194187
our_name=None
195188
try:
@@ -218,6 +211,13 @@ def run_or_die(cmd, error):
218211

219212
print("Libraries installed: ", glob.glob(os.environ['HOME']+'/Arduino/libraries/*'))
220213

214+
# link our library folder to the arduino libraries folder
215+
if not IS_LEARNING_SYS:
216+
try:
217+
os.symlink(BUILD_DIR, os.environ['HOME']+'/Arduino/libraries/' + os.path.basename(BUILD_DIR))
218+
except FileExistsError:
219+
pass
220+
221221
################################ Test platforms
222222
platforms = []
223223
success = 0

0 commit comments

Comments
 (0)