mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
Fixing last commit
This commit is contained in:
parent
c9e1eaf182
commit
503c23ca3b
1 changed files with 5 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue