mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
needed for new maya2egg_server
This commit is contained in:
parent
c96e429f4a
commit
693c3171b7
@ -35,6 +35,9 @@ main(int argc, char *argv[]) {
|
|||||||
if (!command.is_fully_qualified()) {
|
if (!command.is_fully_qualified()) {
|
||||||
DSearchPath path;
|
DSearchPath path;
|
||||||
path.append_path(ExecutionEnvironment::get_environment_variable("PATH"));
|
path.append_path(ExecutionEnvironment::get_environment_variable("PATH"));
|
||||||
|
#ifdef _WIN32
|
||||||
|
command.set_extension("exe");
|
||||||
|
#endif
|
||||||
command.resolve_filename(path);
|
command.resolve_filename(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,11 +163,9 @@ main(int argc, char *argv[]) {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Windows case.
|
// Windows case.
|
||||||
char *command_line = strdup(GetCommandLine());
|
char *command_line = strdup(GetCommandLine());
|
||||||
cout << "command_line: " << command_line << "\n";
|
|
||||||
STARTUPINFO startup_info;
|
STARTUPINFO startup_info;
|
||||||
PROCESS_INFORMATION process_info;
|
PROCESS_INFORMATION process_info;
|
||||||
GetStartupInfo(&startup_info);
|
GetStartupInfo(&startup_info);
|
||||||
cout << "os_command: " << os_command.c_str() << "\n";
|
|
||||||
BOOL result = CreateProcess(os_command.c_str(),
|
BOOL result = CreateProcess(os_command.c_str(),
|
||||||
command_line,
|
command_line,
|
||||||
NULL, NULL, true, 0,
|
NULL, NULL, true, 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user