Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
e2b799b8
Commit
e2b799b8
authored
12 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Fix/work around setuptools' evil PYTHONPATH madness.
parent
4744aa2b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/mn
+5
-1
5 additions, 1 deletion
bin/mn
with
5 additions
and
1 deletion
bin/mn
+
5
−
1
View file @
e2b799b8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment