Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do you put python code for hooks

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.

like image 892
Tyler Smith Avatar asked Apr 22 '26 17:04

Tyler Smith


1 Answers

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

like image 112
Ry4an Brase Avatar answered Apr 25 '26 12:04

Ry4an Brase



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!