Header file for the CommandLineTools module. This file contains declarations for functions related to command line argument extraction, Python executable path checking, and command line preparation for executing Python scripts. More...
#include "deps.h"Go to the source code of this file.
Macros | |
| #define | PYTHON_BIN_NAME L"python.exe" |
| #define | APP_RELATIVE_PATH L".\\stroke_seg.py" |
Functions | |
| LPWSTR * | extractAndCheck (int &argc, std::filesystem::path ¤tExecutableDirPath, std::filesystem::path &pythonExecutablePath) |
| Extracts command line arguments and checks the Python executable path. | |
| std::wstring | commandLineConverter (std::wstring scriptFileName, std::filesystem::path pythonExecutablePath, LPWSTR *argvW, int argc, bool &console) |
| Prepares the command line for execution. | |
Header file for the CommandLineTools module. This file contains declarations for functions related to command line argument extraction, Python executable path checking, and command line preparation for executing Python scripts.
Definition in file commandLineTools.h.
| #define APP_RELATIVE_PATH L".\\stroke_seg.py" |
Definition at line 15 of file commandLineTools.h.
| #define PYTHON_BIN_NAME L"python.exe" |
Definition at line 14 of file commandLineTools.h.
| std::wstring commandLineConverter | ( | std::wstring | scriptFileName, |
| std::filesystem::path | pythonExecutablePath, | ||
| LPWSTR * | argvW, | ||
| int | argc, | ||
| bool & | console ) |
Prepares the command line for execution.
| scriptFileName | The name of the script file to execute. |
| pythonExecutablePath | The path to the Python executable. |
| argvW | Pointer to an array of wide strings (LPWSTR) containing the command line arguments. |
| argc | The number of command line arguments. |
| console | Reference to a boolean indicating if the console should be used. |
Definition at line 42 of file commandLineTools.cpp.
| LPWSTR * extractAndCheck | ( | int & | argc, |
| std::filesystem::path & | currentExecutableDirPath, | ||
| std::filesystem::path & | pythonExecutablePath ) |
Extracts command line arguments and checks the Python executable path.
| [OUT] | argc Reference to the argument count. |
| [OUT] | currentExecutableDirPath Reference to the current executable directory path. |
| [OUT] | pythonExecutablePath Reference to the Python executable path. |
Definition at line 5 of file commandLineTools.cpp.