Skip to content

Commit e313b17

Browse files
committed
Set robotpy.main.robot_py_path
1 parent 73e403e commit e313b17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyfrc/test_support/pytest_dist_plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import pytest
1010

11+
import robotpy.main
1112
import robotpy.logconfig
1213
import wpilib
1314

@@ -53,6 +54,9 @@ def _run_test(item_nodeid, config_args, robot_class, robot_file, verbose, pipe):
5354
robotpy.logconfig.configure_logging(verbose)
5455
_enable_faulthandler()
5556

57+
# This is used by getDeployDirectory, so make sure it gets fixed
58+
robotpy.main.robot_py_path = robot_file
59+
5660
# keep the plugin around because it has a reference to the robot
5761
# and we don't want it to die and deadlock
5862
plugin = PyFrcPlugin(robot_class, robot_file, True)

0 commit comments

Comments
 (0)