mirror of https://github.com/ArduPilot/ardupilot
waf: fixes for python 3.7
This commit is contained in:
parent
27ded1c12b
commit
36af9eecdf
|
@ -200,10 +200,6 @@ class cmake_build_task(Task.Task):
|
|||
def keyword(self):
|
||||
return 'CMake Build'
|
||||
|
||||
# allow tasks to depend on possible headers or other resources if the user
|
||||
# declares outputs for the cmake build
|
||||
cmake_build_task = Task.update_outputs(cmake_build_task)
|
||||
|
||||
cmake_build_task.original_post_run = cmake_build_task.post_run
|
||||
def _cmake_build_task_post_run(self):
|
||||
self.output_patterns = Utils.to_list(self.output_patterns)
|
||||
|
|
3
wscript
3
wscript
|
@ -155,10 +155,11 @@ configuration in order to save typing.
|
|||
def _collect_autoconfig_files(cfg):
|
||||
for m in sys.modules.values():
|
||||
paths = []
|
||||
if hasattr(m, '__file__'):
|
||||
if hasattr(m, '__file__') and m.__file__ is not None:
|
||||
paths.append(m.__file__)
|
||||
elif hasattr(m, '__path__'):
|
||||
for p in m.__path__:
|
||||
if p is not None:
|
||||
paths.append(p)
|
||||
|
||||
for p in paths:
|
||||
|
|
Loading…
Reference in New Issue