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

Look for settings.json in multiple places #715

Merged
merged 1 commit into from
Dec 30, 2017
Merged

Look for settings.json in multiple places #715

merged 1 commit into from
Dec 30, 2017

Conversation

mitchellspryn
Copy link
Contributor

Currently, AirSim looks for the settings.json in the user's documents folder. As detailed in this issue, this can cause problems in some situations. Introduce two new ways of specifying the settings file (listed in the order of priority):

  1. Command line. When using the AirSim plugin, specify the settings with the --settings command line option. For example:

> AirSimApp.exe my_awesome_map --settings "{\"SettingsVersion\": 1.0, \"SimMode\": \"Car\"}"

  1. In the directory of the executable. If the settings.json exists in the directory of the running executable, then it will be used.

If the --settings flag is not specified and the settings.json does not exist in the executable directory, then the settings.json in the user's documents directory is used. If it does not exist there, then AirSim will attempt to create the settings.json in the documents directory (as before).

…fore documents folder

Untabify

Fix whitespace in .hpp files
@sytelus sytelus merged commit 530644d into microsoft:master Dec 30, 2017
ahorn42 added a commit to ahorn42/AirSim that referenced this pull request May 6, 2020
…ument as a path in addition to passing its content.

Also updated documentation, which did not list the other loading possibilities added with microsoft#715.
ahorn42 added a commit to ahorn42/AirSim that referenced this pull request May 6, 2020
…ument as a path in addition to passing its content.

Also updated documentation, which did not list the other loading possibilities added with microsoft#715.
madratman added a commit that referenced this pull request Jul 24, 2020
…ument (#2668)

* Allows to pass the settings.json file location via the --settings argument as a path in addition to passing its content.

Also updated documentation, which did not list the other loading possibilities added with #715.

* add linux example to doc

Co-authored-by: madratman <ratneshmadaan@gmail.com>
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.

2 participants