Skip to content

Commit

Permalink
Move generated files to more consistent locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Sep 17, 2024
1 parent cea8684 commit 6746ed0
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wpilibNewCommands/generate_hids.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def generate_hids(output_directory: Path, template_directory: Path, schema_file:
# Java files
java_subdirectory = "main/java/edu/wpi/first/wpilibj2/command/button"
env = Environment(
loader=FileSystemLoader(template_directory / java_subdirectory),
loader=FileSystemLoader(template_directory / "main/java"),
autoescape=False,
keep_trailing_newline=True,
)
Expand Down
2 changes: 1 addition & 1 deletion wpilibj/generate_hids.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def generate_hids(output_directory: Path, template_directory: Path):

# Java files
env = Environment(
loader=FileSystemLoader(template_directory),
loader=FileSystemLoader(template_directory/ "main/java"),
autoescape=False,
keep_trailing_newline=True,
)
Expand Down
2 changes: 1 addition & 1 deletion wpilibj/generate_pwm_motor_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def generate_pwm_motor_controllers(output_root, template_root):
controllers = json.load(f)

env = Environment(
loader=FileSystemLoader(str(template_root)),
loader=FileSystemLoader(str(template_root /"main/java")),
autoescape=False,
keep_trailing_newline=True,
)
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 6746ed0

Please sign in to comment.