Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

11
  • 1
    I really don't understand what you are asking here, or what you want to happen. What is your question, specified as succinctly as possible? Commented Jan 9, 2015 at 15:31
  • Let me try to make this simpler. I have a script wrapper.sh, which references stuff.py. I want to say "build" and the build tool inlines the python code in a call as described in my post. The end result should be a 'program.sh' with all code inlined. Commented Jan 9, 2015 at 15:35
  • 1
    Why inline the code at all? That seems like a strange thing to do. It would likely be better to have clear separation between your Python code and your shell script. Commented Jan 9, 2015 at 15:36
  • 1
    ...which seems the far preferable solution. Commented Jan 9, 2015 at 15:41
  • 3
    If you are willing to build a convoluted system to do this, but are not willing to consider the (long solved, and far more sustainable) solution of shipping more than 1 file in your deployment, I think you're headed down the wrong path. Good luck though. :-) Commented Jan 9, 2015 at 15:45