try {
int filename_index = 0;
if ( args.length == 0 ) {
- conf = new Configuration( null, false, false );
+ conf = new Configuration( null, false, false, true );
}
else if ( args.length > 0 ) {
// check for a config file
if ( args[ 0 ].startsWith( "-open" ) ) {
filename_index += 1;
}
- conf = new Configuration( config_filename, false, false );
+ conf = new Configuration( config_filename, false, false, true );
if ( args.length > filename_index ) {
f = new File( args[ filename_index ] );
final String err = ForesterUtil.isReadableFile( f );
if ( f != null ) {
title = f.getName();
}
+ File current_dir = null;
+ if ( ( phylogenies != null ) && ( phylogenies.length > 0 ) ) {
+ current_dir = new File( "." );
+ }
try {
- MainFrameApplication.createInstance( phylogenies, conf, title );
+ MainFrameApplication.createInstance( phylogenies, conf, title, current_dir );
}
catch ( final Exception ex ) {
- Util.unexpectedException( ex );
+ AptxUtil.unexpectedException( ex );
}
catch ( final Error err ) {
- Util.unexpectedError( err );
+ AptxUtil.unexpectedError( err );
}
}
}
\ No newline at end of file