boldly running with it. Blame brunner

This commit is contained in:
David Rose 2009-12-05 01:05:27 +00:00
parent 0782c4c2e9
commit 875284deae
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ main(int argc, char *argv[]) {
// First, get the command line and append _bin, so we will actually
// run maya2egg_bin.exe, egg2maya_bin.exe, etc.
Filename command = Filename::from_os_specific(argv[0]);
if (!command.is_fully_qualified()) {
DSearchPath path;
path.append_path(ExecutionEnvironment::get_environment_variable("PATH"));
command.resolve_filename(path);
}
#ifdef _WIN32
if (command.get_extension() == "exe") {