projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dpif-linux: Replace 'minor' by 'dp_idx'.
[openvswitch]
/
python
/
ovs
/
util.py
diff --git
a/python/ovs/util.py
b/python/ovs/util.py
index d4460f39a0df2b7b73bcd42c3841240a9d6afc03..aa4b9bc3dadb125bf5942b4265ae85cca029d564 100644
(file)
--- a/
python/ovs/util.py
+++ b/
python/ovs/util.py
@@
-1,4
+1,4
@@
-# Copyright (c) 2010 Nicira Networks
+# Copyright (c) 2010
, 2011
Nicira Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-13,10
+13,10
@@
# limitations under the License.
import os
# limitations under the License.
import os
+import os.path
import sys
import sys
-_argv0 = sys.argv[0]
-PROGRAM_NAME = _argv0[_argv0.rfind('/') + 1:]
+PROGRAM_NAME = os.path.basename(sys.argv[0])
def abs_file_name(dir, file_name):
"""If 'file_name' starts with '/', returns a copy of 'file_name'.
def abs_file_name(dir, file_name):
"""If 'file_name' starts with '/', returns a copy of 'file_name'.