Skip to content

Commit

Permalink
Fix running batch exe from its directory on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Sep 14, 2024
1 parent 96bdcc2 commit f14aae4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target/batch/batch_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ int main( int argc, char *argv[] )
}

docroot = SpecUtils::parent_path( SpecUtils::parent_path( targetfile ) );
if( docroot.empty() && !targetfile.empty() ) //running from same dir as exe.
docroot = ".";
#endif
}//if( docroot.empty() )

Expand Down

0 comments on commit f14aae4

Please sign in to comment.