Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a file inside a script
#1
i would like for a script i am designing to be able to output some file contents to an actual file even where that file does not yet exist, so there is no opportunity to read the contents at run time. the contents will need to be integrated into the script. the contents will be large enough that it is inconvenient to insert this contents through manual editing of the script. the contents will exist as a file on the development system, but doing a manual insert is not practical.

do any systems or schemes exist to allow the developer to "compile" this by taking script code and the contents file and producing (by running a specific command that is part of this system or scheme) the final script that can be run on other systems that have Python but not the original contents file?

the contents may be binary and/or large such that compression and/or encoding should be used.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  accessing files inside a compressed tar file Skaperen 5 4,849 Oct-22-2019, 01:35 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020