Skip to content

Commit c66885c

Browse files
Release 1.2.3
2 parents e62dd4b + 8df3ecd commit c66885c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

dist/isort-1.2.3.tar.gz

5.62 KB
Binary file not shown.

isort/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
from . import settings
2626
from .isort import SortImports
2727

28-
__version__ = "1.2.2"
28+
__version__ = "1.2.3"

isort/isort.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def __init__(self, file_path=None, file_contents=None, **setting_overrides):
5555

5656
file_name = file_path
5757
if file_path:
58+
file_path = os.path.abspath(file_path)
5859
if "/" in file_name:
5960
file_name = file_name[file_name.rfind('/') + 1:]
6061
if file_name in self.config['skip']:
@@ -83,7 +84,7 @@ def __init__(self, file_path=None, file_contents=None, **setting_overrides):
8384

8485
self.output = "\n".join(self.out_lines)
8586
if file_name:
86-
with open(file_name, "w") as outputFile:
87+
with open(self.file_path, "w") as outputFile:
8788
outputFile.write(self.output)
8889

8990
def place_module(self, moduleName):

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
from distutils.core import setup
44

55
setup(name='isort',
6-
version='1.2.2',
6+
version='1.2.3',
77
description='A Python utility / library to sort Python imports.',
88
author='Timothy Crosley',
99
author_email='[email protected]',
1010
url='https://github.com/timothycrosley/isort',
1111
download_url='https://github.com/timothycrosley/isort/blob/master'
12-
'/dist/isort-1.2.2.tar.gz?raw=true',
12+
'/dist/isort-1.2.3.tar.gz?raw=true',
1313
license="MIT",
1414
scripts=['scripts/isort'],
1515
packages=['isort'],

0 commit comments

Comments
 (0)