Skip to content

Commit

Permalink
Merge pull request #32 from dls-controls/vg
Browse files Browse the repository at this point in the history
Only look at _version_git in immediate subdirs
  • Loading branch information
coretl authored Aug 31, 2021
2 parents 5e478cf + 3618d94 commit 26b4bfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
from epicscorelibs.config import get_config_var

# Place the directory containing _version_git on the path
for path, _, filenames in os.walk(os.path.dirname(os.path.abspath(__file__))):
if "_version_git.py" in filenames:
sys.path.append(path)
break
TOP = os.path.dirname(os.path.abspath(__file__))
for d in os.listdir(TOP):
if os.path.exists(os.path.join(TOP, d, "_version_git.py")):
sys.path.append(os.path.join(TOP, d))

from _version_git import __version__, get_cmdclass # noqa

Expand Down

0 comments on commit 26b4bfb

Please sign in to comment.