#1227: appWizard in windows should create also a .BAT extension, not only .sh
--------------------------------+-------------------------------------------
Reporter: shula | Owner: somebody
Type: defect | Status: new
Priority: minor | Milestone: 0.9.2
Component: ui | Version: 0.9.1
Keywords: appwizard, windows |
--------------------------------+-------------------------------------------
appwizard.py creates a script file to run the new app,
but in windows most users don't have bash.exe installed :)
Since the same app might be used in both systems, keep both .sh and .bat
in that dir!
affected file: appwizard.py, line ~639:
current code:
f = open("./go.sh", "w")
f.write("# go.sh\n")
f.write("# launches the %s app.\n" % appName)
f.write("cd %s\n" % self.outputDirectory )
f.write("python %s.py %s\n" % (appName, tableName))
f.write("# python %s.py --OpenAll\n" % (appName) )
f.close()
suggested code:
filecont = "# go.sh\n"
filecont += "# launches the %s app.\n" % appName
filecont += "cd %s\n" % self.outputDirectory
filecont += "python %s.py %s\n" % (appName, tableName)
filecont += "# python %s.py --OpenAll\n" % (appName)
f = open("./go.sh", "w").write(filecont)
f = open("./go.bat", "w").write(filecont)
shula
--
Ticket URL: <http://trac.dabodev.com/ticket/1227>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]