Ticket #13758 (new Bug)

Opened 2 years ago

plone.recipe.zope2instance.ctl - runscripts sys.argv broken

Reported by: seanupton Owned by:
Priority: minor Milestone: 4.x
Component: Unknown Version: 4.3
Keywords: Cc:

Description

Some change after plone.recipe.zope2instance 4.2.1 (which worked) has broken sys.argv in run-scripts exectuted by ./bin/instance run, such that the following documentation no longer is true:

 http://developer.plone.org/misc/commandline.html#scripting-context

Consequences

  • Now, sys.argv looks like ['/path/to/buildout/parts/debug-instance/bin/interpreter', '-c', 'THING_THAT_WAS_ARGV1_BUT_NO_LONGER']
  • This is wrong, and breaks backward-compatibility with documentation and various integrations' possible run scripts.
Note: See TracTickets for help on using tickets.