Skip to content

Commit

Permalink
don't clobber pythonpath
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Sep 26, 2024
1 parent 3d1e09a commit 53a63ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ def finalize_options(self):
pass

def run(self):
PYTHONPATH = os.environ.get("PYTHONPATH", "")
subprocess.run(
["parserator", "train", "training/labeled.xml", "usaddress"],
env=dict(os.environ, PYTHONPATH="."),
env=dict(os.environ, PYTHONPATH=f".:{PYTHONPATH}"),
)


Expand Down

0 comments on commit 53a63ac

Please sign in to comment.