Skip to content

Commit 7084531

Browse files
authored
Fix python aliases (#732)
* Removes spurious 'Scalene' in qualified names (status quo ante 1.5.26). * Force the inclusion of the canonical names for the Python executable.
1 parent 357a89a commit 7084531

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scalene/scalene_profiler.py

+3
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ def get_original_lock() -> threading.Lock:
301301

302302
# Likely names for the Python interpreter.
303303
__all_python_names = [
304+
"python",
305+
"python" + str(sys.version_info.major),
306+
"python" + str(sys.version_info.major) + "." + str(sys.version_info.minor),
304307
os.path.basename(sys.executable),
305308
os.path.basename(sys.executable) + str(sys.version_info.major),
306309
os.path.basename(sys.executable)

0 commit comments

Comments
 (0)