From c60c068bb66282b3ae6a8fb8144b4d8ef3f92afb Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sun, 11 Sep 2016 17:02:51 +1000 Subject: libbsd: Fix UnboundLocalError when rtems_libbsd is None. --- rtems_bsd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtems_bsd.py b/rtems_bsd.py index eaff438..13212de 100644 --- a/rtems_bsd.py +++ b/rtems_bsd.py @@ -26,6 +26,8 @@ from __future__ import print_function +import os.path + try: import rtems_waf.rtems as rtems except: @@ -56,7 +58,6 @@ def bsp_configure(conf, arch_bsp): if conf.options.rtems_libbsd is None: rtems_libbsd_path = conf.env.PREFIX else: - import os.path if not os.path.exists(conf.options.rtems_libbsd): conf.fatal('RTEMS LibBSD not found') rtems_libbsd_path = conf.options.rtems_libbsd -- cgit v1.2.3