Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Oscar Benjamin Newsgroups: comp.lang.python Subject: Re: extract script from executable made by pyinstaller? Date: Fri, 8 Jan 2016 15:34:47 +0000 Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de un7n6OjTmIzIDVGD17RN+g9r1JC+7RArIkc1RqvR/9mQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'executable': 0.07; 'cc:addr:python-list': 0.09; 'subject:script': 0.09; 'stored': 0.10; 'python': 0.10; '2016': 0.16; 'cc:name:python list': 0.16; 'pyinstaller': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'uncompressed': 0.16; 'view)': 0.16; 'wrote:': 0.16; 'bytes': 0.18; 'script.': 0.18; 'archive': 0.18; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'file.': 0.22; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'sense': 0.26; 'raw': 0.27; 'message-id:@mail.gmail.com': 0.27; "i'm": 0.30; 'extract': 0.33; 'received:google.com': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'possible': 0.36; '(and': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'january': 0.38; 'received:209': 0.38; 'sure': 0.39; 'subject:from': 0.39; 'some': 0.40; 'oscar': 0.84; 'received:209.85.215.42': 0.84; 'subject:made': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=akDDqeRXv72YRs2KqyP+mQ9KxRLz5q3jwEEof9+qFms=; b=KYPzvAj2BJtxRjWfRSCKUA6FSdUck4ts/eXsqmWxKMLBq3Ifntvfy+NJyYPs4dfhlv 37220IGhNBgJIVbTXT6UkHlkkOxkWQoMfidXtW8Pzneaf8wpIBmyzRgNjSTZi8DGcY/9 HClP/cogqcv69RmEzMbIYadAa/sADhDzq10fe9WtVwFZEPXGq06AjJtfZTw596dN/gGV PxgvNgBCV0uuYCyNS0wtes70Kd0sS8l2bAEnlpIZoKXj3Xw1EWLfnfjIoXThvaNC/rnA S0FpXMCrfaSxl33zlgFYUnoWvbZJAyqqfyuDzj/CJdeX6Qlo+q0sPZhA00RzqHzFCcip nXNA== X-Received: by 10.25.16.104 with SMTP id f101mr38686417lfi.47.1452267307050; Fri, 08 Jan 2016 07:35:07 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101380 On 8 January 2016 at 07:44, Ulli Horlacher wrote: > Is it possible to extract (and view) the Python script from the Windows > executable which was made by pyinstller? I may be misremembering but I though that pyinstaller actually stores the main script uncompressed so that it's just in the raw .exe. In which case you just need to find the start and stop bytes of the script. If there are other packages etc. then I'm not sure how to do that but they are in some sense stored as a compressed archive inside the .exe file. -- Oscar