Re: Python includes?

  • From: Haden Pike <haden.pike@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Fri, 25 Dec 2009 10:13:20 -0500

Did you import the module? For example:

import MyApp

facebook = MyApp.faceboo(api_key, fb_secret)

Haden

On 12/24/2009 10:17 PM, Alex Hall wrote:
Hi all,
I have a Facebook id and api key and so on. I want to put this in a file called myApp.py so I can include it in any python files I make for this app and log on by just saying
fb=facebook.Facebook(myApp.id,myApp.sk)
However, trying to include the file results in a "no module named py" error on line 1. The file is just

id=1
ak='ab2'
sk='bc3'

but those numbers and strings are, of course, made up. Why is it not letting me do this? Thanks!


Have a great day,
Alex
New email address: mehgcap@xxxxxxxxx
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: