From 98297cb057b89b5b029872190d1cfde381a3fb16 Mon Sep 17 00:00:00 2001 From: napori0624 Date: Thu, 30 Jan 2020 14:40:09 +0900 Subject: [PATCH 1/2] Also supports Python3 --- rxnlvl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) From 79e0f9870d30ac641f42e30edca7445c45ce22e6 Mon Sep 17 00:00:00 2001 From: napori0624 Date: Thu, 30 Jan 2020 14:49:45 +0900 Subject: [PATCH 2/2] change README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? ------