Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ghilbert.py
diff options
context:
space:
mode:
Diffstat (limited to 'ghilbert.py')
-rwxr-xr-xghilbert.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ghilbert.py b/ghilbert.py
index e816e81..40a5928 100755
--- a/ghilbert.py
+++ b/ghilbert.py
@@ -1628,6 +1628,7 @@ class Ghilbert():
child.params = params
child.ifname = ifname
child.curdir = curdir
+ child.file = expr[1]
scanner = StreamScanner(istream)
while (1):
@@ -1665,7 +1666,7 @@ class Ghilbert():
"'%d'" % (word, scanner.lineno))
except:
print >> sys.stderr, "Error in import: %s line %d" % \
- (gh.file, scanner.lineno)
+ (child.file, scanner.lineno)
raise
finally:
istream.close()
@@ -2043,6 +2044,7 @@ class Ghilbert():
child.params = params
child.ifname = ifname
child.curdir = curdir
+ child.file = path
scanner = StreamScanner(istream)
while (1):
@@ -2080,7 +2082,7 @@ class Ghilbert():
"'%d'" % (word, scanner.lineno))
except:
print >> sys.stderr, "Error in export: %s line %d" % \
- (gh.file, scanner.lineno)
+ (child.file, scanner.lineno)
raise
finally:
istream.close()