-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variable inside exiftoolhelper.execute() #80
Comments
@sylikc,
However, i still get an error about the variable inside the execute command, this is the output I get:
Could you help me find the correct way to do this? |
@ArthurHuyghe Have you checked out the Quick Start / Examples guide? https://sylikc.github.io/pyexiftool/examples.html#input-parameters let me know if it's unclear and I'll update it, but there's a note that addresses just the problem you're having. |
@sylikc, I am not sure if I understood the note in the documentation. Should |
@ArthurHuyghe I just updated the FAQ to try to help with this. See if it helps: https://sylikc.github.io/pyexiftool/faq.html#shlex-split |
Also, in your code above, you don't need to call with ExifToolHelper(logger=logging.getLogger(__name__)) as et:
result = et.execute(parameters)
et.terminate() # don't need to do this, it's done automatically after "with" ends |
@sylikc, Sorry for the late response. The additions to the FAQ do help massively. However, if I run my code, it hangs after the execution call without doing anything. I suspect this has something to do with #73 as I try to run my program on Windows. In this issue, you say CPython 3.12 fixes this problem. I installed the latest version, 3.12.1, and tried again, but nothing changed. This is my code:
And here is the output until it hangs: Thanks for all the help you already provided! |
that's a really odd hang. when running on the command line the command doesn't hang? |
Hi,
if have written a small program to test some functionality. I can't seem to figure out how to pass a variable as an argument for .execute().
this is my prgram:
I would like to pass a path from a file or directory to the exiftool command, wich should basicly comme down to
exiftool "-Directory<CreateDate" -d "%Y/%m" -r "C:\Users\Arthu\Pictures\test exif tool"
.Could you please teach me how to do this propperly?
The text was updated successfully, but these errors were encountered: