Skip to content

Commit

Permalink
Rearranged and renamed the debug script to load globally.
Browse files Browse the repository at this point in the history
  • Loading branch information
poppe1219 committed Jul 1, 2013
1 parent 7447841 commit 7c31b39
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions _multiedit-en.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
"""

import tools.remote_debug_script # @UnusedImport

try:
import pkg_resources
pkg_resources.require("dragonfly >= 0.6.5beta1.dev-r99")
Expand Down
5 changes: 5 additions & 0 deletions tools/remote_debug_script.py → _remote_debugging.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
'C:\Program Files\eclipse\plugins\org.python.pydev_2.7.5.2013052819\pysrc'
This path needs to be included in the Python path.
To be able to import this module, you may also need to add the path to
the Natlink MacroSystem folder.
You may also have to add package files, i.e. empty-files with the name:
"__init__.py" to each folder containing your python files.
Usage:
------
Expand Down Expand Up @@ -42,6 +46,7 @@
pydevd.settrace(ADDRESS, port=PORT, suspend=False,
# Redirect stdout and stderr to eclipse console
stdoutToServer=True, stderrToServer=True)
sys.stdout.write(">>> Pydevd remote debugging activated.\r\n")
except ImportError:
sys.stderr.write("Err: Failed to import Eclipse debug module, pydevd")
except:
Expand Down
2 changes: 1 addition & 1 deletion _winctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

#import pkg_resources
#pkg_resources.require("dragonfly >= 0.6.5beta1.dev-r76")
import tools.remote_debug_script # @UnusedImport

import time
from dragonfly import (Grammar, Alternative, RuleRef, DictListRef,
Dictation, Compound, Integer, Rule, CompoundRule,
Expand Down
Empty file removed tools/__init__.py
Empty file.

0 comments on commit 7c31b39

Please sign in to comment.