Skip to content

Commit a69a7b8

Browse files
committed
fix linter
1 parent 85875e9 commit a69a7b8

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

source/isaaclab/isaaclab/sim/converters/asset_converter_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import os
1010
import pathlib
1111
import random
12+
import tempfile
1213
from datetime import datetime
1314

1415
from isaaclab.sim.converters.asset_converter_base_cfg import AssetConverterBaseCfg
@@ -64,9 +65,9 @@ def __init__(self, cfg: AssetConverterBaseCfg):
6465

6566
# resolve USD directory name
6667
if cfg.usd_dir is None:
67-
# a folder in "/tmp/IsaacLab" by the name: usd_{date}_{time}_{random}
68+
# a folder in the system temp directory by the name: IsaacLab/usd_{date}_{time}_{random}
6869
time_tag = datetime.now().strftime("%Y%m%d_%H%M%S")
69-
self._usd_dir = f"/tmp/IsaacLab/usd_{time_tag}_{random.randrange(10000)}"
70+
self._usd_dir = os.path.join(tempfile.gettempdir(), "IsaacLab", f"usd_{time_tag}_{random.randrange(10000)}")
7071
else:
7172
self._usd_dir = cfg.usd_dir
7273

source/isaaclab_tasks/test/env_test_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import gymnasium as gym
99
import inspect
1010
import os
11-
import sys
1211
import torch
1312

1413
import carb

tools/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def capture_test_output_with_timeout(cmd, timeout, env):
5050

5151
def read_output(pipe, queue_obj, output_stream):
5252
"""Read from pipe and put in queue while streaming to console."""
53-
try:
53+
with contextlib.suppress(Exception):
5454
while True:
5555
chunk = pipe.read(1024)
5656
if not chunk:
@@ -59,8 +59,6 @@ def read_output(pipe, queue_obj, output_stream):
5959
# Stream to console in real-time
6060
output_stream.buffer.write(chunk)
6161
output_stream.buffer.flush()
62-
except Exception:
63-
pass
6462

6563
# Start threads for reading stdout and stderr
6664
stdout_thread = threading.Thread(target=read_output, args=(process.stdout, stdout_queue, sys.stdout))

0 commit comments

Comments
 (0)