diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2005-03-31 16:25:15 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2005-03-31 16:25:15 +0000 |
commit | e13b584d0f7bcf3622705e890107f95f52da2f82 (patch) | |
tree | 304b7ba189c87f61fb9b8feecbdfdc6b641f8970 | |
parent | 99f69395329cac337d70e299302548c21cf135fc (diff) | |
download | MPC-e13b584d0f7bcf3622705e890107f95f52da2f82.tar.gz |
ChangeLogTag: Thu Mar 31 10:23:39 2005 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | modules/ProjectCreator.pm | 9 |
2 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Thu Mar 31 10:23:39 2005 Chad Elliott <elliott_c@ociweb.com> + + * modules/ProjectCreator.pm: + + If -global is used and the file does not contain a path, we will + search the include path for it. + Thu Mar 31 06:53:14 2005 Chad Elliott <elliott_c@ociweb.com> * combine_dsw.pl: diff --git a/modules/ProjectCreator.pm b/modules/ProjectCreator.pm index 45bd5309..07b7d932 100644 --- a/modules/ProjectCreator.pm +++ b/modules/ProjectCreator.pm @@ -292,6 +292,15 @@ sub read_global_configuration { my($status) = 1; if (defined $input) { + ## If it doesn't contain a path, search the include path + if ($input !~ /[\/\\]/) { + $input = $self->search_include_path($input); + if (!defined $input) { + $input = $self->get_global_cfg(); + } + } + + ## Read and parse the global project file $self->{'reading_global'} = 1; $status = $self->parse_file($input); $self->{'reading_global'} = 0; |