# Import the os module, for the os.walk function
import os
# Set the directory you want to start from
rootDir = '.'
for dirName, subdirList, fileList in os.walk(rootDir):
print('Found directory: %s' % dirName)
This option allows you to disable or enable internal commands. To disable a command, precede the command name with a minus [-]. To re-enable a command, precede it with a plus [+]. For example, to disable the internal LIST command to force TCC to use an external command:
setdos /i-list
To re-enable all disabled commands use /I*.
source:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mesh created with | |
| # verts, faces = skimage.measure.marching_cubes(volume, level, spacing=(1.0, 1.0, 1.0)) | |
| from mayavi import mlab | |
| verts, faces = marching_cubes(myvolume, 0.0, (1., 1., 2.)) | |
| mlab.triangular_mesh([vert[0] for vert in verts], | |
| [vert[1] for vert in verts], | |
| [vert[2] for vert in verts], | |
| faces) | |
| mlab.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import shutil | |
| def copyDirectory(src, dest): | |
| try: | |
| shutil.copytree(src, dest) | |
| # Directories are the same | |
| except shutil.Error as e: | |
| print('Directory not copied. Error: %s' % e) | |
| # Any error saying that the directory doesn't exist | |
| except OSError as e: |
NewerOlder