leftover pyc files

Discussion in 'Python' started by Andrea Crotti, Nov 2, 2011.

  1. In our current setup, the script in charge to run our applications also
    scan all the directories and if it finds any "pyc" file without the
    corresponding
    module, it removes it.

    This was done because when you rename something, the old "pyc" remains
    there and can cause problems.

    Is it the only way possible to scan through and remove all of them or is
    there a smarter way?
    Andrea Crotti, Nov 2, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rim
    Replies:
    8
    Views:
    952
  2. Ladvánszky Károly

    pyc files

    Ladvánszky Károly, Feb 3, 2004, in forum: Python
    Replies:
    3
    Views:
    397
    Rene Pijlman
    Feb 3, 2004
  3. Andrea Crotti

    Re: leftover pyc files

    Andrea Crotti, Nov 2, 2011, in forum: Python
    Replies:
    21
    Views:
    590
    Steven D'Aprano
    Nov 4, 2011
  4. Hal Fulton
    Replies:
    9
    Views:
    202
    Gregory Millam
    Apr 28, 2004
  5. Mircescu Andrei
    Replies:
    3
    Views:
    87
    Mircescu Andrei
    Feb 20, 2014
Loading...

Share This Page