diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index 26aa9de..40e1ac6 100644 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -10,8 +10,8 @@ from couchpotato.core.plugins.base import Plugin from couchpotato.core.settings.model import Library, File, Profile, Release, \ ReleaseInfo from couchpotato.environment import Env +from linktastic.linktastic import link, symlink import errno -import linktastic.linktastic as linktastic import os import re import shutil @@ -521,9 +521,9 @@ Remove it if you want it to be renamed (again, or at least let it try again) dest = ss(dest) try: if self.conf('file_action') == 'hardlink': - linktastic.link(old, dest) + link(old, dest) elif self.conf('file_action') == 'symlink': - linktastic.symlink(old, dest) + symlink(old, dest) elif self.conf('file_action') == 'copy': shutil.copy(old, dest) else: diff --git a/libs/linktastic/README.txt b/libs/linktastic/README.txt deleted file mode 100644 index 7fad24d..0000000 --- a/libs/linktastic/README.txt +++ /dev/null @@ -1,19 +0,0 @@ -Linktastic - -Linktastic is an extension of the os.link and os.symlink functionality provided -by the python language since version 2. Python only supports file linking on -*NIX-based systems, even though it is relatively simple to engineer a solution -to utilize NTFS's built-in linking functionality. Linktastic attempts to unify -linking on the windows platform with linking on *NIX-based systems. - -Usage - -Linktastic is a single python module and can be imported as such. Examples: - -# Hard linking src to dest -import linktastic -linktastic.link(src, dest) - -# Symlinking src to dest -import linktastic -linktastic.symlink(src, dest) diff --git a/libs/linktastic/setup.py b/libs/linktastic/setup.py deleted file mode 100644 index e15cc2b..0000000 --- a/libs/linktastic/setup.py +++ /dev/null @@ -1,13 +0,0 @@ -from distutils.core import setup - -setup( - name='Linktastic', - version='0.1.0', - author='Jon "Berkona" Monroe', - author_email='solipsis.dev@gmail.com', - py_modules=['linktastic'], - url="http://github.com/berkona/linktastic", - license='MIT License - See http://opensource.org/licenses/MIT for details', - description='Truly platform-independent file linking', - long_description=open('README.txt').read(), -)