# Run python script as tool?

**URL:** https://community.mp3tag.de/t/run-python-script-as-tool/62262
**Category:** Support
**Created:** [September 30, 2023, 5:26pm UTC](https://community.mp3tag.de/t/run-python-script-as-tool/62262 "2023-09-30T17:26:13Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [September 30, 2023, 5:50pm UTC](https://community.mp3tag.de/t/run-python-script-as-tool/62262/4 "2023-09-30T17:50:25Z")

</div>

> [@Casual\_Tea](#):
>
> As usual any help is appreciated.

The easiest way to debug the error is to use a (temporary) CMD file.

Call a TempBatchFile.cmd with the path and then have a look what exactly do you get in this batch file by `ECHO %1` from inside the batch file to see what you get passed from Mp3tag.

It could be that the call of mp3advanced.py from Mp3tag does not use the underlying python environment. In a batch file you could easy start it with  
`C:\PathToPython\python.exe D:\rips\_IN\mp3advanced.py %1`

And you could try to use the current parameter without double quotes, just  
`$cutRight(%_folderpath%,1)`

---

_[View the full topic](https://community.mp3tag.de/t/run-python-script-as-tool/62262)._
