Fix the open calls to use a host path.

This commit is contained in:
Chris Johns
2013-05-01 06:29:12 +10:00
parent 2edd4c9f28
commit 84924e4e52
3 changed files with 8 additions and 7 deletions

View File

@@ -334,14 +334,15 @@ class macros:
for n in names:
if path.exists(n):
try:
mc = open(n, 'r')
mc = open(path.host(n), 'r')
macros = self.parse(mc)
mc.close()
self.files += [n]
return
except IOError, err:
pass
raise error.general('opening macro file: %s' % (path.host(name)))
raise error.general('opening macro file: %s' % \
(path.host(self.expand(name))))
def get(self, key):
if type(key) is not str: