Edgewall Software

Opened 7 years ago

Last modified 7 years ago

#12757 closed defect

[Errno 2] No such file or directory when running tracd on Windows with --auto-reload — at Initial Version

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: 1.0.14
Component: web frontend/tracd Version: 1.2dev
Severity: normal Keywords: windows
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Running tracd on windows with the -r switch:

(pve) C:\Users\Ryan Ollos\trac-dev>tracd -r -s -p 8000 tracenv
c:\users\ryanol~1\trac-dev\pve\scripts\python.exe: can't open file 'C:\Users
\RYANOL~1\trac-dev\pve\Scripts\tracd': [Errno 2] No such file or directory

Behavior seen on 1.2-stable, I need to check if behavior occurs on 1.0-stable.

It works fine without the -r switch, or when pointing to tracd-script.py rather than tracd:

  • trac-1.2-stable/trac/util/autoreload.py

     
    6363def _restart_with_reloader():
    6464    while True:
    6565        args = [sys.executable] + sys.argv
     66        args[1] += '-script.py'
    6667        if sys.platform == 'win32':
    6768            args = ['"%s"' % arg for arg in args]
    6869        new_environ = os.environ.copy()

That's not a proposed change, just a demonstration of what works.

Change History (0)

Note: See TracTickets for help on using tickets.