• Member Avatar for Gribouillis
    Gribouillis

    Replied To a Post in Finding specific files to move directory

    Very good. I would have written `shutil.move(files, client_folder)`. Another solution is to create a sequence of files to move first def to_move(folder): """generate the files to move""" wd = os.getcwd() …
  • Member Avatar for Gribouillis
    Gribouillis

    Replied To a Post in how to move files to another Directory in Python?

    > What about files specifc with specific names? I think it is best to describe your issue in details and start your own thread.
  • Member Avatar for Gribouillis
    Gribouillis

    Replied To a Post in Common File Types

    The best thing to do is raise the exception to see what happened: except: print 'Error. Try again' raise The drawback of except is that it hides exceptions !
  • Member Avatar for Gribouillis
    Gribouillis

    Replied To a Post in Common File Types

    Also notice that there are many results if you search the word 'magic' in pypi, (without k) especially python implementations of 'file', python bindings to the libmagic library, even packages …
  • Member Avatar for Gribouillis
    Gribouillis

    Replied To a Post in Turtle Closing Help

    If there is an open window, it means that the program is still running. Your question is a contradiction. What you can do is launch the turtle program from another …
  • Member Avatar for Gribouillis
    Gribouillis

    Replied To a Post in time.sleep() in for loop using tkinter

    Don't use `sleep()` in gui programs. Use a timer instead (method `after()` in tkinter). Run [this example](http://www.daniweb.com/software-development/python/code/384025/color-changing-window-demo-of-tkinter-after-timer-events) by PyTony to see how it works.
  • Member Avatar for Gribouillis
    Gribouillis

    Replied To a Post in Common File Types

    In linux, the [`file` command](https://en.wikipedia.org/wiki/File_%28command%29) can help you too.
  • Member Avatar for Gribouillis
    Gribouillis

    Replied To a Post in Using Python Arguments

    In python 2.6, you cannot use empty `{}` in format strings. Use `{0}` here.

The End.