Changeset 55f2d69 in rtems-source-builder


Ignore:
Timestamp:
Sep 22, 2017, 1:54:06 AM (20 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
76d9db3
Parents:
1519d11
git-author:
Chris Johns <chrisj@…> (09/22/17 01:54:06)
git-committer:
Chris Johns <chrisj@…> (09/22/17 02:02:27)
Message:

sb: Allow checking if '.' exists as a path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/path.py

    r1519d11 r55f2d69  
    9797def exists(paths):
    9898    def _exists(p):
    99         return os.path.basename(p) in listdir(dirname(p))
     99        if '/' not in host(p):
     100            p = shell(join(os.getcwd(), host(p)))
     101        return basename(p) in ['.'] + listdir(dirname(p))
    100102
    101103    if type(paths) == list:
Note: See TracChangeset for help on using the changeset viewer.