Google Groups Home
Help | Sign in
how to select between two file libraries with same 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
  2 messages - Collapse all
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
jmborr  
View profile
 More options Aug 23 2007, 2:46 pm
Newsgroups: comp.lang.python
From: jmborr <borregu...@gmail.com>
Date: Thu, 23 Aug 2007 18:46:47 -0000
Local: Thurs, Aug 23 2007 2:46 pm
Subject: how to select between two file libraries with same name?
Imagine my file one.py contains the statement
import two
If there's a two.py in same directory as one.py, then this file will
be loaded. However, I want to load a different file named also two.py,
say file ~username/mypythonlib/two.py
How can I select between the two two.py files ?
-jose

    Reply to author    Forward  
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.
kyoso...@gmail.com  
View profile
 More options Aug 23 2007, 3:18 pm
Newsgroups: comp.lang.python
From: kyoso...@gmail.com
Date: Thu, 23 Aug 2007 12:18:14 -0700
Local: Thurs, Aug 23 2007 3:18 pm
Subject: Re: how to select between two file libraries with same name?
On Aug 23, 1:46 pm, jmborr <borregu...@gmail.com> wrote:

> Imagine my file one.py contains the statement
> import two
> If there's a two.py in same directory as one.py, then this file will
> be loaded. However, I want to load a different file named also two.py,
> say file ~username/mypythonlib/two.py
> How can I select between the two two.py files ?
> -jose

This kind of thing has been discussed before. See below:

http://mail.python.org/pipermail/python-list/2002-October/167055.html

The basic idea is not to do this. Fix your code so that you never have
this problem through code refactoring.

Mike


    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google