Follow symlinks when determining path of boxes library from executable

This commit is contained in:
Florian Festi 2017-02-23 17:20:50 +01:00
parent e23d8034c5
commit b9fef2c6e1
1 changed files with 2 additions and 1 deletions

View File

@ -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