mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-03-02 06:22:12 +00:00
15 lines
288 B
Python
15 lines
288 B
Python
|
|
#!/usr/bin/env python
|
||
|
|
"""A simple test that uses python-gobject to find the path of sh."""
|
||
|
|
from gi.repository import GLib
|
||
|
|
|
||
|
|
|
||
|
|
def main():
|
||
|
|
sh_path = GLib.find_program_in_path('sh')
|
||
|
|
if sh_path == "/bin/sh":
|
||
|
|
return True
|
||
|
|
return False
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == '__main__':
|
||
|
|
main()
|