/usr/bin/create-microhope-env is in microhope 3.4.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #! /usr/bin/python
import Tkinter
import tkMessageBox
import subprocess
import gettext
gettext.bindtextdomain('expeyes')
gettext.textdomain('expeyes')
_ = gettext.gettext
def create_microhope_env():
print "creating microhope environment"
subprocess.call("mkdir -p ~/microhope && cp -Rd /usr/share/microhope/microhope/* ~/microhope", shell=True)
top = Tkinter.Tk()
top.withdraw()
if tkMessageBox.askyesno(_("Create microHope environment"),
_("Do you want to create your own microHope environment?\n\nIf you reply \"Yes\", a subdirectory named microHope will be created in your home directory, and a set of files will be copied into it.\n\nIf any previous installation existed, its contents will be overwriten.")
):
create_microhope_env()
else:
top.quit()
#top.mainloop()
|