-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy path__init__.py
More file actions
25 lines (21 loc) · 920 Bytes
/
__init__.py
File metadata and controls
25 lines (21 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This file is used only in the source code (not installed) to allow
# the developer to run ./stack.py locally and use the local command
# and pylib source code before using the system installed code. This
# means you can/should/must run (and test) the command line before
# installing the RPM.
#
# @copyright@
# Copyright (c) 2006 - 2019 Teradata
# All rights reserved. Stacki(r) v5.x stacki.com
# https://github.com/Teradata/stacki/blob/master/LICENSE.txt
# @copyright@
import os
import site
site_pkgs_path = [p for p in site.getsitepackages() if p.startswith('/opt/stack/lib/python')][0]
# Needed for use-the-src when symlinking pylib
# as its location differs in the package vs the src
# Related to https://bugs.python.org/issue17639
__path__.append(os.path.join(os.path.split(__file__)[0], '..', '..', 'pylib', 'stack'))
__path__.append(f'{site_pkgs_path}/stack')
version = 'no-version'
release = 'no-release'