DEADSOFTWARE

Сделал Loop, убрал на время обработчик нажатий клавиш gtk_key_snooper_install, выявле...
[bbcp.git] / setup_script.py
1 #!/usr/bin/python
3 import os
5 name = "BlackBox LinDev"
7 OUT = open(name, "w")
9 print >> OUT, "#!/bin/bash"
11 cwd = os.getcwd()
13 print >> OUT, "mkdir "+cwd+"/hide"
14 print >> OUT, "mv "+cwd+"/Lin "+cwd+"/hide/"
15 print >> OUT, "mv "+cwd+"/System "+cwd+"/hide/"
16 print >> OUT, "mv "+cwd+"/Host "+cwd+"/hide/"
17 print >> OUT, "mv "+cwd+"/Code "+cwd+"/hide/"
18 print >> OUT, "mv "+cwd+"/Sym "+cwd+"/hide/"
19 print >> OUT, "mv "+cwd+"/Std "+cwd+"/hide/"
21 print >> OUT, "wine "+cwd+"/bb16rc6win/BlackBox.exe -use \"`winepath -w \"$PWD\"`\" $* &"
23 print >> OUT, "sleep 1"
25 print >> OUT, "mv "+cwd+"/hide/* "+cwd+"/"
26 print >> OUT, "rm "+cwd+"/hide -R"
28 os.system('chmod +x "'+name+'"')
30 os.system('mv "'+name+'" "'+os.environ['HOME']+'/.gnome2/nautilus-scripts/" ')