Skip to content
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

Support --convert . for reading code from standard input #48

Open
cpwnd opened this issue Dec 13, 2021 · 2 comments
Open

Support --convert . for reading code from standard input #48

cpwnd opened this issue Dec 13, 2021 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@cpwnd
Copy link

cpwnd commented Dec 13, 2021

I have an extensive xml file. It contains an xsd definition from which I generated an xml parser and class definitions via generateDS.
Now I want to use it in the git-history import.
I can also install the module manually via a setup.py, but I wanted to ask if you think adding a way to import local python modules is a good idea.

Nevertheless great tool! I have already some repos up and running :)

@simonw simonw added the question Further information is requested label Dec 20, 2021
@simonw
Copy link
Owner

simonw commented Dec 20, 2021

This came up in another of my projects just a few weeks ago:

simonw/sqlite-utils#353 (comment) has a workaround that should work with git-history too:

PYTHONPATH=. git-history ... --import transform

So if your module is called transform.py in the current directory the above should cause it to be imported.

@simonw simonw changed the title --convert can import local module Support --convert . for reading code from standard input Dec 20, 2021
@simonw
Copy link
Owner

simonw commented Dec 20, 2021

Implementing the same solution as simonw/sqlite-utils#353 feels like a good idea to me.

@simonw simonw added the enhancement New feature or request label Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants