-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install python libs and commands (#551)
- Loading branch information
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
# | ||
# Copyright (c) 2024, Lawrence Livermore National Security, LLC. | ||
# See top-level LICENSE file for details. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
import os | ||
import os.path | ||
import sys | ||
|
||
exe_file = os.path.realpath(os.path.expanduser(__file__)) | ||
cali_prefix = os.path.dirname(os.path.dirname(exe_file)) | ||
cali_lib_path = os.path.join(cali_prefix, "lib64", "caliper") | ||
sys.path.insert(0, cali_lib_path) | ||
|
||
from cali2traceevent import main | ||
|
||
if __name__ == "__main__": | ||
sys.exit(main()) |