diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-06-13 12:40:30 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-06-13 12:40:30 +0200 |
| commit | 69611077175687cc768b3b568b734f9f4ae721e2 (patch) | |
| tree | 8e165cd5d8052d8b286ae2acb59745d87d0c5321 /src | |
| parent | make editring limit configurable (diff) | |
| download | pytagomacs-69611077175687cc768b3b568b734f9f4ae721e2.tar.gz pytagomacs-69611077175687cc768b3b568b734f9f4ae721e2.tar.bz2 pytagomacs-69611077175687cc768b3b568b734f9f4ae721e2.tar.xz | |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/editor.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/editor.py b/src/editor.py index af1055f..93b0bf7 100644 --- a/src/editor.py +++ b/src/editor.py @@ -18,6 +18,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ''' +import os import sys import string from subprocess import Popen, PIPE @@ -90,11 +91,6 @@ Check if a key stroke is a backspace key stroke ''' -g, l = globals(), dict(locals()) -for key in l: - g[key] = l[key] - - ## Load extension and configurations via pytagomacsrc. config_file = None # Possible auto-selected configuration scripts, @@ -135,10 +131,9 @@ for file in files: config_file = file # and stop trying files with lower precedence. break -# As the zeroth argument for the configuration script, -# add the configurion script file. Just like the zeroth -# command line argument is the invoked command. -conf_opts = [config_file] + conf_opts +#g, l = globals(), dict(locals()) +#for key in l: +# g[key] = l[key] if config_file is not None: code = None # Read configuration script file @@ -154,7 +149,7 @@ if config_file is not None: # globals as this module, so that it can # not only use want we have defined, but # also redefine it for us. - exec(code, g) + exec(code, globals()) |
