tweaked python detection

This commit is contained in:
inxi-svn 2011-07-25 22:18:16 +00:00
parent 01e5ee471b
commit b96d7ff5a2

4
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi #### Script Name: inxi
#### version: 1.7.21-test #### version: 1.7.21-test
#### Date: July 25 2011 #### Date: July 25 2011
#### Patch Number: 01 #### Patch Number: 02
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
######################################################################## ########################################################################
@ -2287,7 +2287,7 @@ get_start_client()
# from inside itself, as a script, the parent is konversation/xchat, not perl/bash etc # from inside itself, as a script, the parent is konversation/xchat, not perl/bash etc
# note: perl can report as: perl5.10.0, so it needs wildcard handling # note: perl can report as: perl5.10.0, so it needs wildcard handling
case $app_working_name in case $app_working_name in
bash|dash|sh|python|perl*) # We want to know who wrapped it into the shell or perl. bash|dash|sh|python*|perl*) # We want to know who wrapped it into the shell or perl.
pppid="$( ps -p $PPID -o ppid --no-headers | sed 's/ //g' )" pppid="$( ps -p $PPID -o ppid --no-headers | sed 's/ //g' )"
if [[ -n $pppid && -f /proc/$pppid/exe ]];then if [[ -n $pppid && -f /proc/$pppid/exe ]];then
irc_client_path="$( readlink /proc/$pppid/exe )" irc_client_path="$( readlink /proc/$pppid/exe )"