Skip to content
Snippets Groups Projects
Commit e2b799b8 authored by Bob Lantz's avatar Bob Lantz
Browse files

Fix/work around setuptools' evil PYTHONPATH madness.

parent 4744aa2b
No related branches found
No related tags found
No related merge requests found
......@@ -12,10 +12,14 @@ Example to pull custom params (topo, switch, etc.) from a file:
"""
from optparse import OptionParser
import os.path
import os
import sys
import time
# Fix setuptools' evil madness, and open up (more?) security holes
if 'PYTHONPATH' in os.environ:
sys.path = os.environ[ 'PYTHONPATH' ].split( ':' ) + sys.path
from mininet.clean import cleanup
from mininet.cli import CLI
from mininet.log import lg, LEVELS, info
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment