Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to import a module with spaces in the name
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gregory Piñero  
View profile  
 More options Feb 15 2006, 4:36 pm
Newsgroups: comp.lang.python
From: Gregory Piñero <gregpin...@gmail.com>
Date: Wed, 15 Feb 2006 16:36:41 -0500
Local: Wed, Feb 15 2006 4:36 pm
Subject: How to import a module with spaces in the name
Let's say I have a module named "Excellent Module.py"

How would I import that into a script?  I'm guessing it will involve
the imp module somehow
(http://www.python.org/doc/2.4.2/lib/module-imp.html) but I didn't
figure it out.

----

And let's go ahead and pretend I have a good reason for doing this and
that I already know that spaces in module filenames should be avoided
at all costs!

Thanks,

--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Farshid Lashkari  
View profile  
 More options Feb 15 2006, 4:53 pm
Newsgroups: comp.lang.python
From: Farshid Lashkari <lashkar...@SPAMworldviz.com>
Date: Wed, 15 Feb 2006 13:53:20 -0800
Local: Wed, Feb 15 2006 4:53 pm
Subject: Re: How to import a module with spaces in the name

Gregory Piñero wrote:
> Let's say I have a module named "Excellent Module.py"

ExcellentModule = __import__('Excellent Module')

-Farshid


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gregory Piñero  
View profile  
 More options Feb 15 2006, 7:29 pm
Newsgroups: comp.lang.python
From: Gregory Piñero <gregpin...@gmail.com>
Date: Wed, 15 Feb 2006 19:29:40 -0500
Local: Wed, Feb 15 2006 7:29 pm
Subject: Re: How to import a module with spaces in the name
Thanks, that did work!

On 2/15/06, Farshid Lashkari <lashkar...@spamworldviz.com> wrote:

> Gregory Piñero wrote:
> > Let's say I have a module named "Excellent Module.py"

> ExcellentModule = __import__('Excellent Module')

> -Farshid
> --
> http://mail.python.org/mailman/listinfo/python-list

--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »