Skip to content

Commit f94b255

Browse files
committed
Moved the build_rpm_docker.py to etc/scripts #340
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent b98640e commit f94b255

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,9 @@ def build_rpm_with_docker():
146146
print("Error: Docker not found. Please install Docker first.", file=sys.stderr)
147147
sys.exit(1)
148148

149+
# Get the directory where the current script is located (which is located in etc/scripts)
150+
script_dir = Path(__file__).parent.resolve()
151+
# Go up two levels from etc/scripts/
152+
project_root = script_dir.parent.parent
153+
os.chdir(project_root)
149154
build_rpm_with_docker()

0 commit comments

Comments
 (0)