Skip to content

Commit c6c85a8

Browse files
committed
use realpath() to get the dir of bessctl
use of abspath() breaks "bessctl run" command, which depends on the current directory of bessctl script.
1 parent c648ea8 commit c6c85a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bessctl/bessctl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import logging
4646
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
4747

4848
try:
49-
this_dir = os.path.dirname(os.path.abspath(__file__))
49+
this_dir = os.path.dirname(os.path.realpath(__file__))
5050
sys.path.insert(1, os.path.join(this_dir, '..'))
5151
from pybess.bess import *
5252
except ImportError:

0 commit comments

Comments
 (0)