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

fix: allow multiple --location-prefix-rewrite command-line options #109

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

maciekwawro
Copy link

It seems that it was the intention to begin with: https://github.com/pabigot/pyxb/blob/next/pyxb/binding/generate.py#L2569-L2570

Test plan

Before:

$ ls
schema.xsd
$ pyxbgen --schema-location=/A/schema.xsd --location-prefix-rewrite=/A=./ --location-prefix-rewrite=/B=./
ERROR:pyxb.utils.utility:open /A/schema.xsd
IOError: [Errno 2] No such file or directory: '/A/schema.xsd'

After:

$ pyxbgen --schema-location=/A/schema.xsd --location-prefix-rewrite=/A=./ --location-prefix-rewrite=/B=./
Python for http://www.example.com/ requires 1 modules

I also confirmed that $ pyxbgen --help still works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant