From 503c23ca3b8c396115f11a4b875036856dc69890 Mon Sep 17 00:00:00 2001 From: Starow Date: Fri, 8 Aug 2014 17:08:41 +0200 Subject: [PATCH] Fixing last commit --- bin/packages/Paste.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/packages/Paste.py b/bin/packages/Paste.py index 795cfd22..56c8356a 100755 --- a/bin/packages/Paste.py +++ b/bin/packages/Paste.py @@ -30,10 +30,6 @@ from lib_refine import * clean = lambda dirty: ''.join(filter(string.printable.__contains__, dirty)) """It filters out non-printable characters from the string it receives.""" -configfile = './config.cfg' -cfg = ConfigParser.ConfigParser() -cfg.read(configfile) - class Paste(object): """ This class representing a Paste as an object. @@ -50,6 +46,11 @@ class Paste(object): """ def __init__(self, p_path): + + configfile = './config.cfg' + cfg = ConfigParser.ConfigParser() + cfg.read(configfile) + self.p_path = p_path self.p_name = self.p_path.split('/')[-1]