aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_be.py
diff options
context:
space:
mode:
authorOlivier Abad <oabad@noos.fr>2001-08-30 19:31:53 +0000
committerOlivier Abad <oabad@noos.fr>2001-08-30 19:31:53 +0000
commit987acc38a8584dd1471441efb52a59e49412593d (patch)
treee99b4ec85691e8edbbf340ecc6c7da969fecc4f5 /ethereal_be.py
parente76642f9c7139dc66a1b65cc6620fc70a2de1c44 (diff)
Patch from Frank Singleton :
- Use only basename of CORBA IDL file to generate the dissector name, and not the fullpath name. Allows idl2eth to generate valid "C" code no matter where the IDL file lives (doh!) svn path=/trunk/; revision=3886
Diffstat (limited to 'ethereal_be.py')
-rw-r--r--ethereal_be.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ethereal_be.py b/ethereal_be.py
index 23ada99ec8..08efdb8a98 100644
--- a/ethereal_be.py
+++ b/ethereal_be.py
@@ -1,6 +1,6 @@
# -*- python -*-
#
-# $Id: ethereal_be.py,v 1.3 2001/07/27 18:35:22 guy Exp $
+# $Id: ethereal_be.py,v 1.4 2001/08/30 19:31:53 oabad Exp $
#
# File : ethereal_be.py
#
@@ -59,6 +59,7 @@
from omniidl import idlast, idltype, idlvisitor, idlutil, output
import sys, string
+from os import path
from ethereal_gen import ethereal_gen_C
#
@@ -139,7 +140,8 @@ def run(tree, args):
# Assumption: Name is of the form abcdefg.xyz (eg: CosNaming.idl)
#
- nl = string.split(tree.file(),".")[0] # split name of main IDL file using "." as separator
+ fname = path.basename(tree.file()) # grab basename only, dont care about path
+ nl = string.split(fname,".")[0] # split name of main IDL file using "." as separator
# and grab first field (eg: CosNaming)
# create a C generator object