DEADSOFTWARE

HostDialog -> HostDialog, HostLang
[bbcp.git] / setup_script.py
1 #! /usr/bin/env python
3 import os
5 name = "BlackBox LinDev"
7 OUT = open(name, "w")
9 print >> OUT, "#!/bin/sh"
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/"
20 print >> OUT, "wine "+cwd+"/bb16rc6win/BlackBox.exe -use \"`winepath -w \"$PWD\"`\" $* &"
22 print >> OUT, "sleep 2"
24 print >> OUT, "mv "+cwd+"/hide/* "+cwd+"/"
25 print >> OUT, "rm "+cwd+"/hide -R"
27 os.system('chmod +x "'+name+'"')
29 os.system('mv "'+name+'" "'+os.environ['HOME']+'/.gnome2/nautilus-scripts/" ')