- Timestamp:
- 20 Jan 2012, 14:00:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/helpers.txt
r7321 r7496 16 16 17 17 >>> import os 18 >>> import tempfile 19 >>> old_location = os.getcwd() 20 >>> new_location = tempfile.mkdtemp() 21 >>> os.chdir(new_location) 22 18 23 >>> from waeup.sirp.utils.helpers import remove_file_or_directory 19 24 >>> open('blah', 'wb').write('nonsense') … … 151 156 Clean up: 152 157 153 >>> remove_file_or_directory('src') 154 >>> remove_file_or_directory('dst') 158 >>> import shutil 159 >>> shutil.rmtree(new_location) 160 >>> os.chdir(old_location) 161 155 162 156 163
Note: See TracChangeset for help on using the changeset viewer.