Skip to content

Commit

Permalink
[one-cmds] Get right optimization list (Samsung#10334)
Browse files Browse the repository at this point in the history
This commit fixes the function to get the opt list correctly.

Signed-off-by: seongwoo <[email protected]>
  • Loading branch information
mhs4670go authored Jan 13, 2023
1 parent ff99769 commit eb18e62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/one-cmds/onelib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def get_optimization_list(get_name=False):
dir_path = os.path.dirname(os.path.realpath(__file__))

# optimization folder
files = [f for f in glob.glob(dir_path + '/../optimization/O*.cfg', recursive=True)]
files = [
f for f in glob.glob(dir_path + '/../../optimization/O*.cfg', recursive=True)
]
# exclude if the name has space
files = [s for s in files if not ' ' in s]

Expand Down

0 comments on commit eb18e62

Please sign in to comment.