Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:using': 0.04; 'api.': 0.05; 'python': 0.08; 'executes': 0.09; 'subject:.pyc': 0.09; 'subject:api': 0.09; 'subject:python': 0.10; 'thanks,': 0.18; 'pass': 0.29; 'script.': 0.29; 'subject: .': 0.29; 'values': 0.32; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.34; 'done.': 0.34; 'however,': 0.36; 'variables': 0.37; 'run': 0.37; 'using': 0.38; 'files': 0.39; 'to:addr:python.org': 0.40; 'within': 0.60 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 29 Nov 2011 13:04:01 +0530 From: Mrinalini Kulkarni To: Subject: Executing .pyc using python c api Organization: EDSS Pvt.Ltd. X-Sender: mrinalini@edss.co.in User-Agent: Roundcube Webmail/0.5.1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1322553616 news.xs4all.nl 6918 [2001:888:2000:d::a6]:39081 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16378 Hi I need to run .pyc files using python c api. if i do PyImport_Import it executes the script. However, i need to pass a set of variables and their values which will be accessed from within the script. How can this be done. thanks,