Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

scripts/fixup_keywords.py not available after library installation #62

Closed
riqiang-dp opened this issue Jul 24, 2020 · 2 comments
Closed
Assignees
Labels
api: texttospeech Issues related to the googleapis/python-texttospeech API. type: question Request for information or clarification. Not an issue.

Comments

@riqiang-dp
Copy link

riqiang-dp commented Jul 24, 2020

Might be a silly question but:

I'm trying to update to 2.1 from 1.0.1 but I haven't been able to access this script after installing the package. I couldn't find more documentation or troubleshooting for this utility and with my limited experience I haven't seen other packages provide scripts like this before. (the file is simply not added to $PATH). Am I missing some step?
(I could simply use the script from this repo but I wonder what to do to make it work the intended way).

...........

Yes: scripts/fixup_keywords.py is published with the library.

If you install the library it will be available on the command line. https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-scripts-keyword-argument

Originally posted by @busunkim96 in #30 (comment)

@product-auto-label product-auto-label bot added the api: texttospeech Issues related to the googleapis/python-texttospeech API. label Jul 24, 2020
@busunkim96
Copy link
Contributor

Hi @riqiang-dp,

We added the script to scripts in setup.py.

scripts=["scripts/fixup_keywords.py"],
setuptools should copy it to your $PATH. https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-scripts-keyword-argument

That said, if it's causing you trouble I'd recommend you just run the script from the repo (or wherever the library is installed locally).

@busunkim96 busunkim96 added the type: question Request for information or clarification. Not an issue. label Jul 24, 2020
@riqiang-dp
Copy link
Author

Thanks for your quick reply! Somehow it was not copied but I just used the script from the repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: texttospeech Issues related to the googleapis/python-texttospeech API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants