|
148 | 148 | -- if I have an existing instance, create a new configuration |
149 | 149 | -- block for it so I don't pick up an old filter |
150 | 150 | if instance then |
151 | | - configset.addFilter(instance, {}, os.getcwd()) |
| 151 | + configset.addFilter(instance, {}, api.scope.current.basedir) |
152 | 152 | end |
153 | 153 |
|
154 | 154 | -- otherwise, a new instance |
|
163 | 163 | -- (recursive call, so needs to be its own function) |
164 | 164 | api._clearContainerChildren(class) |
165 | 165 |
|
166 | | - -- active this container, as well as it ancestors |
| 166 | + -- active this container, as well as its ancestors |
167 | 167 | if not class.placeholder then |
168 | 168 | api.scope.current = instance |
169 | 169 | end |
|
716 | 716 | table.remove(api.scope.global.blocks, i) |
717 | 717 | end |
718 | 718 |
|
719 | | - configset.addFilter(api.scope.current, {}, os.getcwd()) |
| 719 | + configset.addFilter(api.scope.current, {}, api.scope.current.basedir) |
720 | 720 | end |
721 | 721 |
|
722 | 722 |
|
|
1087 | 1087 | premake.field.kind("path", { |
1088 | 1088 | paths = true, |
1089 | 1089 | store = function(field, current, value, processor) |
1090 | | - return path.deferredjoin(os.getcwd(), value) |
| 1090 | + return path.deferredjoin(p.api.scope.current.basedir, value) |
1091 | 1091 | end, |
1092 | 1092 | compare = function(field, a, b, processor) |
1093 | 1093 | return (a == b) |
|
1152 | 1152 | if (type(terms) == "table" and #terms == 1 and terms[1] == "*") or (terms == "*") then |
1153 | 1153 | terms = nil |
1154 | 1154 | end |
1155 | | - local ok, err = configset.addFilter(api.scope.current, {terms}, os.getcwd()) |
| 1155 | + local ok, err = configset.addFilter(api.scope.current, {terms}, api.scope.current.basedir) |
1156 | 1156 | if not ok then |
1157 | 1157 | error(err, 2) |
1158 | 1158 | end |
|
0 commit comments