Follow symlinks when determining path of boxes library from executable
This commit is contained in:
parent
e23d8034c5
commit
b9fef2c6e1
|
@ -5,10 +5,11 @@ import os
|
|||
import sys
|
||||
from pprint import pprint
|
||||
|
||||
|
||||
try:
|
||||
import boxes
|
||||
except ImportError:
|
||||
sys.path.append(os.path.dirname(__file__) + "/..")
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/..")
|
||||
import boxes
|
||||
|
||||
import boxes.generators
|
||||
|
|
Loading…
Reference in New Issue