Changeset cfed165 in rtems-source-builder


Ignore:
Timestamp:
09/29/22 08:57:16 (2 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
e04c841
Parents:
d7fb57f
git-author:
Chris Johns <chrisj@…> (09/29/22 08:57:16)
git-committer:
Chris Johns <chrisj@…> (09/29/22 21:06:27)
Message:

sb/version: Set top from external package

File:
1 edited

Legend:

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

    rd7fb57f rcfed165  
    9090_git = False
    9191_is_loaded = False
     92_top_dir = None
    9293
    9394def _top():
    94     top = path.dirname(sys.argv[0])
     95    if _top_dir is None:
     96        top = path.dirname(sys.argv[0])
     97    else:
     98        top = _top_dir
    9599    if len(top) == 0:
    96100        top = '.'
     
    184188    return _git
    185189
     190def set_top(top):
     191    global _top_dir
     192    _top_dir = top
     193
    186194def load_release_settings(section, error = False):
    187195    vc, v = _load_released_version_config()
Note: See TracChangeset for help on using the changeset viewer.