• Members 14 posts
    Oct. 9, 2018, 7:25 a.m.

    Hi,

    I took a look at function - start_misago_project (github.com/rafalp/Misago/blob/master/misago/core/setup.py#L53), there is one script
    named start-misago.py, but i can not find it. Can you tell me where i can find this script?

    Thanks.

    def start_misago_project():
        parser = OptionParser(usage="usage: %prog project_name [directory]")
        _, args = parser.parse_args()
    
        if len(args) < 1:
            parser.error("project_name must be specified")
    
        dir = None
        if len(args) == 2:
            dir = args[1]
    
        project_name = validate_project_name(parser, args[0])
    
        argv = [
            'start-misago.py', 'startproject', project_name, dir,
            '--template=%s' % get_misago_project_template()
        ]
    
        management.execute_from_command_line(argv)
    
  • Oct. 9, 2018, 10:40 a.m.

    Hello @raeuz,

    Why do you need to find this file? It should be automatically added to your bin path when you are installing Misago using pip install misago or setup.py, so you can just run misago-start.py without caring where it is ;)

    But if you want to find it, look at scripts entry in Misago's setup.py, that key defines list of scripts that should be copied to user's bin directory on installation.

  • Members 14 posts
    Oct. 9, 2018, 4:07 p.m.

    Yes i can find misago-start.py, but not start-misago.py. So I doubt if it is wrong ( start-misago.py should be spelled misago-start.py
    github.com/rafalp/Misago/blob/master/misago/core/setup.py#L53) , right?

  • Oct. 25, 2018, 8:48 p.m.
    check_box

    Marked as best answer by Oct. 30, 2018, 8:12 a.m..

    So, I've looked at this code and here's whats going on:

    • misago-start.py started its life as misago-admin.py, but was renamed first to start-misago.py and then to what it is today, sometime 4 years ago
    • this didn't break anything, because that string is only used as script name, and startproject is not using that for anything. Still, we want to set it to something to be nice citizens

    Anyway, thanks for report, this will be fixed as part of Misago 0.19.3 release, so it shouldn't tip anyone off anymore.