mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
autotest: make scripts directory relative to CWD
This is where the library is expecting to find the scripts directory. The existing setup assumes that autotest has been run from the root directory - that's not always the case. For example, the autotest server starts everything one-up from the root directory.
This commit is contained in:
parent
1fd5168eeb
commit
5f8b7e990e
@ -4689,7 +4689,7 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
|
||||
return os.path.join(self.rootdir(), "libraries", "AP_Scripting", "examples", scriptname)
|
||||
|
||||
def installed_script_path(self, scriptname):
|
||||
return os.path.join(self.rootdir(), "scripts", scriptname)
|
||||
return os.path.join("scripts", scriptname)
|
||||
|
||||
def install_example_script(self, scriptname):
|
||||
source = self.script_source_path(scriptname)
|
||||
|
Loading…
Reference in New Issue
Block a user