Skip to content

Commit baab077

Browse files
committed
Fix bug in discovering project root
1 parent 0f716fe commit baab077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ebcli_installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535

3636
EBCLI_INSTALLER_STAMP = '.ebcli_installer_stamp'
3737

38-
39-
with open(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'VERSION')) as version_file:
38+
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
39+
with open(os.path.join(PROJECT_ROOT, 'VERSION')) as version_file:
4040
EBCLI_INSTALLER_VERSION = version_file.read().strip()
4141

4242

0 commit comments

Comments
 (0)