Brad Keryan

Results 41 comments of Brad Keryan

Using `REG_EXPAND_SZ` to expand the environment variable also seems to work: `reg add "HKCR\Python.Pyenv\shell\open\command" /t REG_EXPAND_SZ /d "\"^%USERPROFILE^%\.pyenv\pyenv-win\shims\python.bat\" \"%1\""`

If you run the command at the command line, you need to use %1, but if you put it in a batch file, you need to use %%1 to escape...

Is it necessary to dynamically generate shim EXEs? A single, precompiled shim EXE could use `argv[0]` to identify which command to call.

The existing batch file implementation already uses this technique. `%0` is `argv[0]`. `%~n0` extracts the command name, omitting the drive letter, directory, and file extension. `pyenv exec` does the rest....

What if the bootloader parent process created a Win32 job object and associated itself with the job? That would allow terminating both the parent/child processes as a group. However, it...

FYI, `DAQmx_Val_GroupByScanNumber` does not have this data squashing/shifting behavior. With `DAQmx_Val_GroupByScanNumber`, the original array would be: [1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] Truncating the number of samples would not move any of the samples. NumPy...

@WayneDroid This issue is not unique to the buffer size attributes. If ctypes doesn't perform a range check when we convert an `int` to a `ctypes` sized integer type, then...

@WayneDroid Two more things: We should figure out whether this issue is specific to the attribute setter functions. The `LibraryInterpreter` attribute get/set functions are special because they use varargs. Instead...

FYI, a couple of other NI drivers have "UTF-8 only" C APIs: - NI-SLSC - VirtualBench If support for either of these drivers is ever added to the NI gRPC...

I think the minimum fix is to update these API methods to accept either a `str` or a `pathlib.PurePath`: - `InStream.logging_file_path` setter - `InStream.start_new_file()` - `PhysicalChannel.configure_teds()` I think this would...