StrokeSeg 1.0.0
Loading...
Searching...
No Matches
commandLineTools.h
Go to the documentation of this file.
1#pragma once
12#include "deps.h"
13
14#define PYTHON_BIN_NAME L"python.exe"
15#define APP_RELATIVE_PATH L".\\stroke_seg.py"
16
24LPWSTR* extractAndCheck(int& argc, std::filesystem::path& currentExecutableDirPath, std::filesystem::path& pythonExecutablePath);
25
35std::wstring commandLineConverter(std::wstring scriptFileName, std::filesystem::path pythonExecutablePath, LPWSTR* argvW, int argc, bool& console);
LPWSTR * extractAndCheck(int &argc, std::filesystem::path &currentExecutableDirPath, 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.