par files?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Russell Lear

    par files?

    In java there are .jar files so I'm wondering if Python has anything similar
    - .par files perhaps?

    I know jar files have their limitations and shortcomings, but being able to
    bundle together a bunch of related python files with various resource files
    seems like a handy thing to have.

    Thanks,
    Russell.

  • Miki Tebeka

    #2
    Re: par files?

    Hello Russell,
    [color=blue]
    > In java there are .jar files so I'm wondering if Python has anything similar
    > - .par files perhaps?[/color]
    Python (since 2.2 I think) can import from zip files (jar files are zip
    files).
    Just add the zip file name to sys.path and you're done.

    Bye.
    --
    -------------------------------------------------------------------------
    Miki Tebeka <miki.tebeka@zo ran.com>

    The only difference between children and adults is the price of the toys.

    Comment

    Working...