Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug introduced by PR #532 #559

Merged
merged 1 commit into from
Nov 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions HEN_HOUSE/egs++/egs_application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ EGS_Application::EGS_Application(int argc, char **argv) : input(0), geometry(0),
app_name = egsStripPath(argv[0]);

// In Windows PowerShell, we need to remove a .exe extension
size_t exePos = app_name.find_last_of(".exe");
size_t exePos = app_name.rfind(".exe");
if (exePos != string::npos) {
app_name = app_name.substr(0, exePos-3);
app_name = app_name.substr(0, exePos);
}
}
if (!app_name.size()) egsFatal("%s\n failed to determine application "
Expand Down