Skip to content

Commit c5c881f

Browse files
authored
Fix start.bat in ni-measurement-generator. Fix LV UI file for one of the examples. (#97)
* Put quotes around the path to the measurement.py file in start.bat. Remove the Error Handler case from the DCMeasurementUI.vi * Fix golden batch file for tests * Use single quote string with embedded double quotes * Update contributing to include Linting instructions * Update contributing for Lint instructions * Remove instruction for the venv
1 parent c55a0f4 commit c5c881f

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

CONTRIBUTING.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,17 @@ from . import DiscoveryServices_pb2 as DiscoveryServices__pb2
9494
from . import ServiceLocation_pb2 as ServiceLocation__pb2
9595
```
9696

97-
# Build
97+
# Lint and Build Code
98+
99+
## Linting (correctly formatting) code
100+
101+
To check the code and update it for formatting errors
102+
103+
```cmd
104+
poetry run ni-python-styleguide fix
105+
```
106+
107+
## Building
98108

99109
```cmd
100110
poetry build
-2.07 KB
Binary file not shown.

ni_measurement_generator/ni_measurement_generator/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _create_bat(directory_out):
3333
output_file = pathlib.Path(directory_out) / "start.bat"
3434

3535
with output_file.open("w") as fout:
36-
fout.write(f"call python %~dp0measurement.py")
36+
fout.write(f'call python "%~dp0measurement.py"')
3737

3838

3939
def _check_version(ctx, param, version):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
call python %~dp0measurement.py
1+
call python "%~dp0measurement.py"

0 commit comments

Comments
 (0)