From 75b66914fd1888079b6a43bfe906dfecb3776dc8 Mon Sep 17 00:00:00 2001 From: einarr Date: Wed, 31 Jan 2007 14:56:43 +0000 Subject: [PATCH] Fixed bug by removing hardcoded filename. --- fluents/lib/blmfuncs.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fluents/lib/blmfuncs.py b/fluents/lib/blmfuncs.py index e722c1c..3340ca6 100644 --- a/fluents/lib/blmfuncs.py +++ b/fluents/lib/blmfuncs.py @@ -4,7 +4,7 @@ import os import pygtk import gtk import gtk.glade -import fluents +from fluents import fluents from fluents.workflow import Function, OptionsDialog, Options from fluents.dataset import Dataset from fluents import plots, dataset, workflow, logger @@ -537,8 +537,7 @@ class PcaOptionsDialog(OptionsDialog): """ def __init__(self, data, options, input_names=['X']): OptionsDialog.__init__(self, data, options, input_names) - #glade_file = os.path.join(fluents.DATADIR, 'pca_options.glade') - glade_file = os.path.join("/home/flatberg/fluents/fluents/", 'pca_options.glade') + glade_file = os.path.join(fluents.DATADIR, 'pca_options.glade') notebook_name = "vbox1" page_name = "Options" @@ -751,8 +750,7 @@ class PlsOptionsDialog(OptionsDialog): """ def __init__(self, data, options, input_names=['X', 'Y']): OptionsDialog.__init__(self, data, options, input_names) - #glade_file = os.path.join(fluents.DATADIR, 'pca_options.glade') - glade_file = os.path.join("/home/flatberg/fluents/fluents/", 'pls_options.glade') + glade_file = os.path.join(fluents.DATADIR, 'pls_options.glade') notebook_name = "vbox1" page_name = "Options"