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
|
import sys
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import boxes
|
import boxes
|
||||||
except ImportError:
|
except ImportError:
|
||||||
sys.path.append(os.path.dirname(__file__) + "/..")
|
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/..")
|
||||||
import boxes
|
import boxes
|
||||||
|
|
||||||
import boxes.generators
|
import boxes.generators
|
||||||
|
|
Loading…
Reference in New Issue