from distutils.core import setup
import os

f = open("README.rst")
try:
    try:
        readme_text = f.read()
    except:
        readme_text = ""
finally:
    f.close()

setup(name="ftptool", version="0.4",
    url="http://blogg.se",
    description="Higher-level interface to ftplib",
    author="Blogg Esse AB",
    author_email="opensource@blogg.se",
    long_description=readme_text,
    py_modules=["ftptool"])

from distutils.core import setup
import os

readme_fname = os.path.join(os.path.dirname(__file__), "README.rst")
readme_text = open(readme_fname).read()

setup(name="ftptool", version="0.4",
    url="http://blogg.se",
    description="Higher-level interface to ftplib",
    author="Blogg Esse AB",
    author_email="opensource@blogg.se",
    long_description=readme_text,
    py_modules=["ftptool"])

Make long description import path agnostic.
Make long description import path agnostic.

  from distutils.core import setup
  import os
  
+ readme_fname = os.path.join(os.path.dirname(__file__), "README.rst")
+ readme_text = open(readme_fname).read()
- f = open("README.rst")
- try:
-     try:
-         readme_text = f.read()
-     except:
-         readme_text = ""
- finally:
-     f.close()
  
  setup(name="ftptool", version="0.4",
      url="http://blogg.se",
      description="Higher-level interface to ftplib",
      author="Blogg Esse AB",
      author_email="opensource@blogg.se",
      long_description=readme_text,
      py_modules=["ftptool"])
  
Make long description import path agnostic.
## Code Before:
from distutils.core import setup
import os

f = open("README.rst")
try:
    try:
        readme_text = f.read()
    except:
        readme_text = ""
finally:
    f.close()

setup(name="ftptool", version="0.4",
    url="http://blogg.se",
    description="Higher-level interface to ftplib",
    author="Blogg Esse AB",
    author_email="opensource@blogg.se",
    long_description=readme_text,
    py_modules=["ftptool"])

## Instruction:
Make long description import path agnostic.
## Code After:
from distutils.core import setup
import os

readme_fname = os.path.join(os.path.dirname(__file__), "README.rst")
readme_text = open(readme_fname).read()

setup(name="ftptool", version="0.4",
    url="http://blogg.se",
    description="Higher-level interface to ftplib",
    author="Blogg Esse AB",
    author_email="opensource@blogg.se",
    long_description=readme_text,
    py_modules=["ftptool"])
