No errors with code, just a few potential issues #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are no syntax errors in your original code, but there are some issues (and sugestions) that are possibly good to know:
First, the get_args() function assumes that there will always be a command line argument, but sometimes there might not be. You should add some error checking to handle this situation.
Second, using os.system() to execute command line commands isn't always safe. It's better to use the subprocess module instead, because it's more flexible and secure.
Third, the set_py_name() function assumes that Python is on the system path, but that might not always be true. You should use the sys.executable variable to get the path to the Python interpreter instead.
Fourth, your script only works on Windows because of colour 07 and django-admin.exe. It's better to use subprocess to execute platform-specific commands and make your script cross-platform.
Fifth, your script doesn't give any feedback to the user. It would be better to print output to the console so the user knows what's happening.
Finally, the script doesn't activate the virtual environment automatically, so the user has to do it manually. It's better to activate the virtual environment within the script automatically.
I think that this script should help.
Tell me if there is anything wrong.