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
63 63 def _restart_with_reloader(): 64 64 while True: 65 65 args = [sys.executable] + sys.argv 66 args[1] += '-script.py' 66 67 if sys.platform == 'win32': 67 68 args = ['"%s"' % arg for arg in args] 68 69 new_environ = os.environ.copy()
That's not a proposed change, just a demonstration of what works.
Note:
See TracTickets
for help on using tickets.