Skip to content

Commit

Permalink
Move lib/ to scripts/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mgpb committed Oct 13, 2017
1 parent ab82bae commit 4434b32
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 12 deletions.
7 changes: 1 addition & 6 deletions scripts/checkcves.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
import os
import sys

# need to add our lib folder to import path
bindir = os.path.dirname(os.path.abspath(__file__))
topdir = os.path.dirname(bindir)
sys.path.insert(1, os.path.join(topdir, 'lib'))

import llapi
from lib import llapi

NVD_BASE_URL = 'https://nvd.nist.gov/vuln/detail/'

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions scripts/manifest.py → scripts/lib/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
target = sys.argv[2]
ofile = sys.argv[3]

# add bitbake's lib and our layer's lib folders to import path
bindir = os.path.dirname(__file__)
topdir = os.path.dirname(bindir)
sys.path[0:0] = [os.path.join(broot, 'lib'), os.path.join(topdir, 'lib')]
sys.path.insert(0, os.path.join(broot, 'lib'))

import bb
import bb.tinfoil
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if [ -z "${BITBAKE}" ]; then
exit 1
fi

BBLIBDIR=$(readlink -f $(dirname ${BITBAKE})/..)
MANIFEST_PY=$(dirname $0)/manifest.py
BBLIBDIR=$(readlink -f "$(dirname "${BITBAKE}")/..")
MANIFEST_PY=$(dirname "$(readlink -f "$0")")/lib/manifest.py

echo "Running manifest script. This takes some time using bitbake: ${BBLIBDIR}"
${MANIFEST_PY} ${BBLIBDIR} $@

0 comments on commit 4434b32

Please sign in to comment.