Skip to content

Commit d002133

Browse files
Apply suggestions from code review
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 660a42f commit d002133

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

executor_manager/src/shims/host_shim.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,10 @@ impl HostShim {
283283
if let Ok(flame_home) = env::var(FLAME_HOME) {
284284
let lib_path = Path::new(&flame_home).join("lib");
285285
if let Some(site_packages) = Self::find_site_packages(&lib_path) {
286+
let site_packages_str = site_packages.to_string_lossy().to_string();
286287
envs.entry("PYTHONPATH".to_string())
287-
.or_insert(site_packages.to_string_lossy().to_string());
288+
.and_modify(|e| *e = format!("{}:{}", site_packages_str, e))
289+
.or_insert(site_packages_str);
288290

289291
// Set LD_LIBRARY_PATH for all packages with native extensions (.so files)
290292
let ld_paths = Self::find_native_lib_paths(&site_packages);

perf/flamepy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def collect_task_lifecycles(
277277
except Exception as e:
278278
print(f"Warning: Failed to collect tasks from session {session_id}: {e}")
279279

280-
if debug or True:
280+
if debug:
281281
print(f"Events found: {events_found}")
282282
tasks_with_start = sum(1 for lc in lifecycles if lc.start_time)
283283
print(f"Tasks with start_time: {tasks_with_start}/{len(lifecycles)}")

0 commit comments

Comments
 (0)