diff --git a/README.md b/README.md index a71ff33..78239a1 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A simple python package for drawing attractive chemical reaction energy level di What do I need? ------ -`rxnlvl` requires Python 2.x or later. +`rxnlvl` supported Python 2.x and Python3.x. How do I work it? ------ diff --git a/rxnlvl/__init__.py b/rxnlvl/__init__.py index e32e638..acbcc23 100644 --- a/rxnlvl/__init__.py +++ b/rxnlvl/__init__.py @@ -114,7 +114,7 @@ def deriveBufferedEnergyRange(self, bufsize): def write(self): # Determine absolute path - path = os.path.dirname(unicode(__file__,sys.getfilesystemencoding())) + path = os.path.dirname(__file__.encode(sys.getfilesystemencoding()).decode()) svgstring = '' # Write the preamble for the svg format svgstring += appendTextFile('{}/dat/svgprefix.frag'.format(str(path)))