Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 281823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:14:10+00:00 2026-05-12T05:14:10+00:00

My main goal is to get this up and running. My hook gets called

  • 0

My main goal is to get this up and running.

My hook gets called when I do the commit with Tortoise SVN, but it always exits when I get to this line: Python “%~dp0trac-post-commit-hook.py” -p “%TRAC_ENV%” -r “%REV%” || EXIT 5

If I try and replace the call to the python script with any simple Python script it still doesn’t work so I’m assuming it is a problem with the call to Python and not the script itself.

I have tried setting the PYTHON_PATH variable and also set %PATH% to include Python.

I have trac up and running so Python is working on the server itself.

Here is some background info:

  • Python is installed on Windows server and script is called from local machine so

    IF NOT EXIST %TRAC_ENV% EXIT 3

    and

    SET PYTHON_PATH=X:\Python26
    IF NOT EXIST %PYTHON_PATH% EXIT 4

fail unless I point set them to the mapped network drive (That is point them at X and Y drives not C and E drives)

  • Python scripts can be called anywhere from the command line from the server regardless of the drive so the PATH variable should be set correctly

Appears to be an issue with calling python scripts externally, but not sure how I go about changing the permissions for this.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:14:11+00:00Added an answer on May 12, 2026 at 5:14 am

    Take the following things into account:

    • network drive mappings and subst
      mappings are user specific. Make sure
      the drives exist for the user account
      under which the svn server is
      running.
    • subversion hook scripts are run
      without any environment variables
      being set
      for security reasons, not even %path%. Call
      the python executable with an
      absolute path, e.g.
      c:\python25\python.exe.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do i do that? Actually my main goal is to get which checkbox
This might be a little subjective, but I'd like to get your input on
This is a bit of subjective question about a specific situation. Main goal for
The main goal of my issue is to put specific colors on Donut Change.
My main goal is to change the volume on one sound card based on
I have an application thats main goal is to play a specific video file.
For homework, I need to build a small java application.The main goal is to
I've recently started my new private project. The main goal which I want to
Is there a Maven phase or goal to simply execute the main method of
Main Goal - To deploy a live version of my solution on an IIS.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.