source: sasview/sansview/clean.py @ 6e4c9fe

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 6e4c9fe was db67f3e, checked in by Gervaise Alina <gervyh@…>, 13 years ago

modify clean.py to look for files only in current dir

  • Property mode set to 100644
File size: 244 bytes
RevLine 
[fa597990]1"""
2    Remove all compiled code.
3"""
4import os
5
[db67f3e]6filedirs = ['.']
[fa597990]7
8for d in filedirs:
9    files = os.listdir(d)
10    for f in files:
11        if f.find('.pyc')>0:
12            print "Removed", f
13            os.remove(os.path.join(d,f))
Note: See TracBrowser for help on using the repository browser.