2021-09-21 23:04:37 +02:00
|
|
|
#!/usr/bin/env python3
|
2020-03-12 20:47:17 +01:00
|
|
|
"""A simple test that uses python-gobject to find the path of sh."""
|
|
|
|
from gi.repository import GLib
|
|
|
|
|
2020-03-24 15:47:25 +01:00
|
|
|
|
2020-03-12 20:47:17 +01:00
|
|
|
def main():
|
|
|
|
sh_path = GLib.find_program_in_path('sh')
|
|
|
|
if sh_path == "/bin/sh":
|
2020-03-24 15:47:25 +01:00
|
|
|
return True
|
2020-03-12 20:47:17 +01:00
|
|
|
return False
|
|
|
|
|
2020-03-24 15:47:25 +01:00
|
|
|
|
2020-03-12 20:47:17 +01:00
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|