mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
14
support/testing/tests/package/sample_python_gobject.py
Normal file
14
support/testing/tests/package/sample_python_gobject.py
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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()
|
||||
Reference in New Issue
Block a user