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
Message from discussion ropemacs with execfile
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
 
Ali Gholami Rudi  
View profile  
 More options Oct 27 2012, 12:37 am
From: Ali Gholami Rudi <aligr...@gmail.com>
Date: Sat, 27 Oct 2012 07:54:22 +0330
Local: Sat, Oct 27 2012 12:24 am
Subject: Re: ropemacs with execfile
Hi,

Manuel Naranjo <naranjo.man...@gmail.com> wrote:
> Problem is that many of this scripts use the execfile fashion, we have a
> function that will call execfile for each one of the config files we ask.
> This execfile defines the local variable env to a
> Scons.Environment.Environmnet(), which off course rope doesn't have a clue
> how to solve.

> My question would be is there a way to tell rope "if you find variable env,
> and it's not defined in the code you're looking at then resolve it as
> this?" I've been trying to solve this question my self for a few days all
> ready but haven't found a clue, other than defining env my self when the
> script starts.

Rope does not handle the execfile() function since it
is hard to analyze statistically.  The only way to make
it work, I think is adding an import statement (a "from
xyz import *" in the source scope).

        Ali


 
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.