diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-12 13:18:39 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-12 13:18:39 -0500 |
commit | ce50b6562b83c868eadab993892200ac3dd84638 (patch) | |
tree | b6a4ec606e1abf8e2509ca7841a78255bd38fd2f /src | |
parent | 76be949631450e97945628f8c578bcc679eb4a51 (diff) | |
download | pytdeextensions-ce50b6562b83c868eadab993892200ac3dd84638.tar.gz pytdeextensions-ce50b6562b83c868eadab993892200ac3dd84638.zip |
Remove guidance-specific EXTRA_MODULE_DIR code from this generic module
This resolves Bug 999
Diffstat (limited to 'src')
-rw-r--r-- | src/kdedistutils.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/kdedistutils.py b/src/kdedistutils.py index 9557dc4..b8b3743 100644 --- a/src/kdedistutils.py +++ b/src/kdedistutils.py @@ -872,9 +872,6 @@ class BuildKControlModule(Command): #include <sip.h> #define MODULE_DIR "%(moduledir)s" -#define EXTRA_MODULE_DIR "/opt/trinity/share/python-support/tde-guidance-trinity" -#define EXTRA_MODULE_DIR_TWO "/opt/trinity/share/python-support/guidance-backends-trinity" -#define EXTRA_MODULE_DIR_THREE "/opt/trinity/share/python-support/tde-guidance-powermanager-trinity" #define MODULE_NAME "%(modulename)s" #define FACTORY "%(factoryfunction)s" #define CPP_FACTORY %(factoryfunction)s @@ -915,18 +912,6 @@ static KCModule* return_instance( QWidget *parent, const char *name ) { if(!pyize->appendToSysPath (path.latin1 ())) { return report_error ("***Failed to set sys.path\n"); } - QString extrapath = QString(EXTRA_MODULE_DIR); - if(!pyize->appendToSysPath (extrapath.latin1 ())) { - return report_error ("***Failed to set extra sys.path\n"); - } - QString extrapath_two = QString(EXTRA_MODULE_DIR_TWO); - if(!pyize->appendToSysPath (extrapath_two.latin1 ())) { - return report_error ("***Failed to set extra 2 sys.path\n"); - } - QString extrapath_three = QString(EXTRA_MODULE_DIR_THREE); - if(!pyize->appendToSysPath (extrapath_three.latin1 ())) { - return report_error ("***Failed to set extra 3 sys.path\n"); - } // Load the Python script. PyObject *pyModule = pyize->importModule ((char *)script.latin1 ()); |