We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e478cf + 3618d94 commit 26b4bfbCopy full SHA for 26b4bfb
setup.py
@@ -8,10 +8,10 @@
8
from epicscorelibs.config import get_config_var
9
10
# Place the directory containing _version_git on the path
11
-for path, _, filenames in os.walk(os.path.dirname(os.path.abspath(__file__))):
12
- if "_version_git.py" in filenames:
13
- sys.path.append(path)
14
- 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))
15
16
from _version_git import __version__, get_cmdclass # noqa
17
0 commit comments