Commits

Stéphane Klein  committed 037be5a

Improve README.txt

  • Participants
  • Parent commits cc91da3

Comments (0)

Files changed (2)

     $ convert-nfd-unicode-filesystem-to-nfc-unicode foobar@example.com:2000:/home/foobar/www/
 
 Home page : https://bitbucket.org/harobed/convert-nfd-unicode-filesystem-to-nfc-unicode
+Contact : contact@stephane-klein.info

File src/convertnfdunicodefilesystemtonfcunicode/__init__.py

 import sys
 import unicodedata
 from urlparse import urlparse
-from uuid import uuid4
 
 from docopt import docopt
 
+here = os.path.abspath(os.path.dirname(__file__))
+
 
 def fix_unicode(path, verbose=True):
     for root, dirs, files in os.walk(unicode(path), topdown=False):
     arguments = docopt(
 """This tool can convert file system encoded in NFD mode to NFC mode.
 
-On Mac OS X, the filesystem encode file name in NFD unicode 
+On Mac OS X, the filesystem encode file name in NFD unicode
 (http://en.wikipedia.org/wiki/Unicode_normalization#Example).
 On GNU/Linux, by default the filesystem encode file name in NFC unicode
 but it can also contain file encoded in NFD mode.
         f = open(path_tmpfile, 'w')
         f.write(remote_cmd % {'path': url.path})
         f.close()
-        print('scp -P %(port)s %(path_tmpfile)s %(user)s@%(host)s/tmp/' % locals())
         os.system('scp -P %(port)s %(path_tmpfile)s %(user)s@%(host)s:/tmp/' % locals())
-        print('ssh -p %(port)s %(user)s@%(host)s python /tmp/%(basename_tmpfile)s' % locals())
         os.system('ssh -p %(port)s %(user)s@%(host)s python /tmp/%(basename_tmpfile)s' % locals())
     else:
         if not os.path.exists(path):