()
clean the workspace of build files; leave in-place compiled files
clean the workspace of build files; leave in-place compiled files
clean the workspace of build files ; leave in - place compiled files
def wash():
    """clean the workspace of build files; leave in-place compiled files"""
    # remove traces of egg
    for path in glob.glob(os.path.join(HERE, '*.egg-info')):
        prune(path)
    # remove intermediate builds
    prune(os.path.join(HERE, 'build'))
    # remove bytecode files
    for root, dirs, files in os.walk(HERE):
        for name in dirs:
            if name == '__pycache__':
                prune(os.path.join(root, name))
        for name in files:
            if (name.endswith('.pyc') or name.endswith('.pyo')) and 'test' not in root:
                remove(os.path.join(root, name))
    # remove distribution resources
    prune(os.path.join(HERE, 'resources'))
    # remove release stamp
    remove(os.path.join(HERE, 'pcbasic', 'basic', 'data', 'release.json'))
    # remove manifest
    remove(os.path.join(HERE, 'MANIFEST.in'))
def wash ( ) : # remove traces of egg for path in glob . glob ( os . path . join ( HERE , '*.egg-info' ) ) : prune ( path ) # remove intermediate builds prune ( os . path . join ( HERE , 'build' ) ) # remove bytecode files for root , dirs , files in os . walk ( HERE ) : for name in dirs : if name == '__pycache__' : prune ( os . path . join ( root , name ) ) for name in files : if ( name . endswith ( '.pyc' ) or name . endswith ( '.pyo' ) ) and 'test' not in root : remove ( os . path . join ( root , name ) ) # remove distribution resources prune ( os . path . join ( HERE , 'resources' ) ) # remove release stamp remove ( os . path . join ( HERE , 'pcbasic' , 'basic' , 'data' , 'release.json' ) ) # remove manifest remove ( os . path . join ( HERE , 'MANIFEST.in' ) )