Skip to content

Commit ba27a54

Browse files
committed
fix(task): replace direct OS_OPEN usage with open-with-os function calls
1 parent a540a42 commit ba27a54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

task

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ record-with-py-spy() {
12811281
mkdir -p tmp
12821282
echo "source task source; py-spy record --pid $pid --output $output_file --format speedscope" | sudo bash --
12831283

1284-
$OS_OPEN "$speedscope_url"
1284+
open-with-os "$speedscope_url"
12851285
}
12861286

12871287
record-with-memray() {
@@ -1304,7 +1304,7 @@ record-with-memray() {
13041304
python3 -m memray run -o "$output_file" $(which odoo) --database="$DATABASE" --config "$ODOO_RC" \
13051305
--http-port="$port" --addons-path="$ADDONS_PATH" --dev=all --log-level="$LOG_LEVEL"
13061306
python3 -m memray flamegraph "$output_file"
1307-
$OS_OPEN "tmp/memray-flamegraph-output.html"
1307+
open-with-os "tmp/memray-flamegraph-output.html"
13081308
fi
13091309
}
13101310

@@ -1759,7 +1759,7 @@ visualize-dependencies() {
17591759

17601760
mkdir -p tmp
17611761
./bin/odoo-module-dependencies "$1"
1762-
$OS_OPEN tmp/odoo-module-dependencies.html
1762+
open-with-os tmp/odoo-module-dependencies.html
17631763
}
17641764

17651765
# Setup commands

0 commit comments

Comments
 (0)