m <target> command not working

Issue #399 resolved
Saurabh Kathpalia
created an issue

There is a problem in the documentation in this page. Wiki says that m <target> but this doesn't work. To make it run we have to use ./m <target> or source m <target>

Comments (5)

  1. Saurabh Kathpalia reporter

    I moved the m file to the moin-2.0-venv-python/bin/ then it is working. quickinstall.py needs to be changed.

    def create_m():
        """Create an 'm.bat or 'm' bash script that will run make.py using this Python"""
        if WINDOWS_OS:
            with open('m.bat', 'w') as f:
                f.write(':: {}\n\n@{} make.py %*\n'.format(WIN_INFO, sys.executable))
            with open('m', 'w') as f:
                f.write('# {}\n\n{} make.py $*\n'.format(NIX_INFO, sys.executable))
                os.fchmod(f.fileno(), 0775)

    It is creating file m in the same directory but it should make that file in the ../moin-2.0-venv-python/bin/

  2. RogerHaase

    Agree, the docs must be changed to explain that "./m" should be used for unix and "m" works for windows.

    ./m runs make.py. make.py will activate the virtual env if it is required to run the target command. the "m" script is intended to be located in the repo root.

  3. Log in to comment