Skip to content

Conversation

@dirtcrusher
Copy link
Contributor

I added some scripts to facilitate the usage of Mutate++ from a CLI.

For projects with lots of files, it can be quite annoying to manually add them using the web interface and then generate the patches for each one.

I also added scripts for adding projects to the DB and to control the queue, in case someone would want to use it in an semi-automated environment (the output still needs to be observed in the web interface).

Originally I wanted to put the scripts in the app directory, but I ran into some issues with importing from sibling/parent directories, python kept yelling at me that the root directory is not a package. In the end, I found the workaround using sys.path.append(".") which allows the scripts to import the app package but only when run from the parent directory.

Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@nlohmann nlohmann merged commit de76704 into nlohmann:master Apr 24, 2022
@nlohmann
Copy link
Owner

Thanks!

@dirtcrusher dirtcrusher deleted the feature/cli_scripts branch May 7, 2022 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants