X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fconst.py;h=697cd4637c0db2cb44b3d500e5f14203ca5d69c9;hb=e8f7cd556a3b0678b3edf97250cd8ec293d251d5;hp=4f226328f9cc719167626617a0d7eef6612e5f34;hpb=02614fb7eb04177d8647d38de0f22f345959008b;p=bertos.git diff --git a/wizard/const.py b/wizard/const.py index 4f226328..697cd463 100644 --- a/wizard/const.py +++ b/wizard/const.py @@ -33,6 +33,14 @@ # Author: Lorenzo Berni # +import os, sys + +_tmp = sys.argv[0] +if os.path.islink(_tmp): + _tmp = os.readlink(_tmp) +DATA_DIR = os.path.dirname(os.path.abspath(_tmp)) +del _tmp + CPU_DEF = { "CPU_NAME": "", "CPU_DIR": "",