From: Claudio-Daniel Freire Date: Wed, 5 Oct 2011 18:58:49 +0000 (-0300) Subject: Fix DISPLAY regex X-Git-Tag: nepi-3.0.0~171^2~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=301954763819ce26c994fd8e49e2c9ed1d531fe0;p=nepi.git Fix DISPLAY regex --- diff --git a/examples/Multicast/multicast_experiment.py b/examples/Multicast/multicast_experiment.py index a064588d..95ce5f6c 100644 --- a/examples/Multicast/multicast_experiment.py +++ b/examples/Multicast/multicast_experiment.py @@ -769,7 +769,7 @@ if __name__ == '__main__': exp.plpass = getpass.getpass("Password for %s: " % (exp.pluser,)) # Fix some distro's environment to work well with netns - if re.match(r"[^:]*:\d+", os.environ['DISPLAY']): + if re.match(r"[^:]*:\d+$", os.environ['DISPLAY']): os.environ['DISPLAY'] += '.0' if not os.environ.get('XAUTHORITY'): os.environ['XAUTHORITY'] = os.path.join(os.environ['HOME'], '.Xauthority')