Skip to content

Commit bd438ce

Browse files
authored
Merge pull request #997 from NetSys/bessctl_use_realpath
use realpath() to get the dir of bessctl
2 parents 3d0f066 + c6c85a8 commit bd438ce

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)