Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins Discussion (Moderator: MordyT)Phyton Wrapper Plugin help.
Pages: [1]   Go Down
  Print  
Author Topic: Phyton Wrapper Plugin help.  (Read 222 times) Bookmark and Share
Newbie
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: SmG
Posts: 1
Offline Offline
« on: July 11, 2011, 08:00:22 AM »

t twitter as twitterapi

api = twitter.Api(consumer_key='xxxxxxxxxxxx',
consumer_secret='xxxxxxxxxxx',
access_token_key='xxxxxx-xxxxxx',
access_token_secret='xxxxxxxxxxxxxxxxxxx')
« Last Edit: July 11, 2011, 03:10:08 PM by mikedemon » Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: July 11, 2011, 10:03:24 AM »

Hi,

try the following construct :

Code: python
with open("c:/tmp/test.txt") as f:
   for line in f:
       print("read line : %s" % line.strip())

also, I would advise you to use DreamPie to try out your code.
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal