mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 07:28:54 +08:00
cmake: move jinja2 check to Python modules
This removes the cmake check for jinja2 and moves it to the respective Python scripts.
This commit is contained in:
@@ -7,7 +7,15 @@ import argparse
|
||||
import os
|
||||
import sys
|
||||
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
try:
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
except ImportError as e:
|
||||
print("Failed to import jinja2: " + e)
|
||||
print("")
|
||||
print("You may need to install it using:")
|
||||
print(" pip3 install --user jinja2")
|
||||
print("")
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
import yaml
|
||||
|
||||
Reference in New Issue
Block a user