Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'unable to import a library that had some code in a 'src' subfolder... #95

Merged
merged 1 commit into from
Nov 21, 2013

Conversation

mattiarossi
Copy link
Contributor

Hi, had trouble getting my head around it, but I was unable to import a library that had some code in a 'src' subfolder.

It turns out there is a check in sketch.py, method expandCoreFolder that checks for a subfolder named src, and if so (I imagine because of some particular structure in the core arduino libraries) it skips including the main folder in the list of folders to be checked for include files.
I changed the method so that it checks whether the folder in question is in the arduino application path, and skip this particular behaviour for folders not in there (i.e. the sketchbook libraries folder):

Robot-Will added a commit that referenced this pull request Nov 21, 2013
Fix  'unable to import a library that had some code in a 'src' subfolder...
@Robot-Will Robot-Will merged commit c3f416c into Robot-Will:master Nov 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants