3

I have created a python script I want a mercurial hook to call but what I cant figure out is where the working directory (or where to start the path to the script) should be from.

I know this probably isnt right but I need a way to set a hook like... changegroup=python:e:\www\hg\hooks\teamTrack.py:associate

Thanks in advance.

Tyler Smith
  • 1,269
  • 1
  • 12
  • 24

1 Answers1

2

if you put the python file in your python path you can reference it by name without a path in the hgrc.

Ry4an Brase
  • 78,112
  • 7
  • 148
  • 169
  • Thanks, it turns out I got it right eventually the thing is I didn't realize the working directory (where my output was going) was the base of the repo. – Tyler Smith Apr 08 '11 at 13:28