Commits

Pawel Jasinski committed f4a3800

in case of IronPython the frame support is unconditionally added to
shebang

  • Participants
  • Parent commits d3cd741

Comments (0)

Files changed (1)

distlib/scripts.py

         if enquote and ' ' in executable:
             executable = '"%s"' % executable
         executable = fsencode(executable)
+        # in case of IronPython, play safe and enable frames support
+        if sys.platform == 'cli' \
+           and post_interp.find("-X:Frames") == -1 \
+           and post_interp.find("-X:FullFrames") == -1:
+            post_interp += b' -X:Frames'
         shebang = b'#!' + executable + post_interp + b'\n'
         # Python parser starts to read a script using UTF-8 until
         # it gets a #coding:xxx cookie. The shebang has to be the