aboutsummaryrefslogtreecommitdiff
path: root/Tools/fileman/delmix.py
blob: b6b8cdd4b14f312eff14540690608d77c18481b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
#
# /fs/microsd/etc/mixers/FMU_quad_x.mix file deleter
#

from nsh import NSH

def main():
	fn = "/fs/microsd/etc/mixers/FMU_quad_x.mix"

	try:
		nsh = NSH()
		nsh.wait_and_open_nsh()
		if nsh.file_exists(fn):
			nsh.exec_cmd("rm {}".format(fn), 2.0)
			print("Success.")
		else:
			print("Cannot find {}".format(fn))

	finally:
		nsh.close()

if __name__ == "__main__":
	main()