Skip to content

Commit

Permalink
Fix checking studio lab bug (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed May 12, 2024
1 parent ed394c7 commit dac2117
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions leafmap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -6478,12 +6478,16 @@ def is_studio_lab():

import psutil

output = psutil.Process().parent().cmdline()

on_studio_lab = False
for item in output:
if "studiolab/bin" in item:
on_studio_lab = True

try:
output = psutil.Process().parent().cmdline()

for item in output:
if "studiolab/bin" in item:
on_studio_lab = True
except:
pass
return on_studio_lab


Expand Down

0 comments on commit dac2117

Please sign in to comment.