mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Take into account --curdir for all relative paths
In a lot of places, (potentially) relative paths were passed to File without any processing, making them be resolved without taking into account --curdir. By passing them through Base.absoluteFile instead, these paths are resolved relative to the working directory before starting arduino (at least on Linux, which is currently the only platform supporting --curdir). This applies --curdir to the --preferences-file option and the build.path, settings.path, sketchbook.path preferences. For example, this now works as expected: arduino --pref build.path=build_dir --verify Blink.ino
This commit is contained in:
committed by
Cristian Maglie
parent
4f33d0851c
commit
cc773fb1e0
@ -280,6 +280,13 @@ HISTORY
|
||||
file, just like *--pref*. The *--verbose* options still only
|
||||
apply to the current run.
|
||||
|
||||
{empty}::
|
||||
A path passed to *--preferences-file*, or set in the
|
||||
*build.path*, *preferences.path* or *settings.path* is now
|
||||
interpreted relative to the current directory instead of the
|
||||
location of the arduino command itself.
|
||||
|
||||
|
||||
RESOURCES
|
||||
---------
|
||||
Web site: <http://arduino.cc/>
|
||||
|
Reference in New Issue
Block a user