#1227: appWizard in windows should create also a .BAT extension, not only .sh
----------------------+-----------------------------------------------------
  Reporter:  shula    |       Owner:  paul              
      Type:  defect   |      Status:  assigned          
  Priority:  trivial  |   Milestone:  0.9.2             
 Component:  ui       |     Version:  0.9.1             
Resolution:           |    Keywords:  appwizard, windows
----------------------+-----------------------------------------------------
Changes (by paul):

  * owner:  somebody => paul
  * priority:  minor => trivial
  * status:  new => assigned

Old description:

> 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

New description:

 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:
 {{{
 #!python
         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:
 {{{
 #!python
         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

Comment:

 Okay I'll add this, but I never really understood the utility of go.sh...
 Thanks!

-- 
Ticket URL: <http://trac.dabodev.com/ticket/1227#comment:2>
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]

Reply via email to