eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.51k stars 1.42k forks source link

replace build.bat by build.py in osmWebWizard #7581

Open behrisch opened 4 years ago

behrisch commented 4 years ago

Pros:

Cons:

Please discuss @namdre @yunpangfloetteroed @schwamborn @RobertHilbrich

schwamborn commented 4 years ago

Being a Unix user first and foremost, I am more confused by having a build.bat and run.bat in my generated scenario folder, where only one of the two has executable access rights and only one of them has the shebang line.

Getting back on-topic, I'm all in for having a python script instead. I think the pros outweigh the cons.

namdre commented 4 years ago

I wondering whether the typical windows user has ever seen/used a batch file before. It might be that the hesitation is similar in both cases. The fact that people created a scenario with the wizard indicates their ability to execute a python file. Can you think of a reason why one would work and the other would not (in particular for python files without arguments)? Does the installed start-menu-link to the wizard specify the python interpreter?

behrisch commented 4 years ago

You are right, if the webWizard works, every other python script should too. The start menu link does not specify a python interpreter.

yunpangfloetteroed commented 4 years ago

Hi! actually I agree with the 2nd and the 3rd point in Cons from the point of a window/sumo-user. With batch a user just needs to double click it without typing and/or setting any python-file-linking! It will be also fine to generate both files (bat and sh). But, it seems that mac needs something else than what linux wants (at least on two macs)................

behrisch commented 4 years ago

OK, maybe we start then with a bat and a py file and see later whether the bat is still needed?

namdre commented 4 years ago

@yunpangfloetteroed If the user started webWizard from a file explorer or via the start menu shortcut it means that double-clicking on python files is working.