|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Manages .bundleinclude file, which allows to explicitely include files and folders to bundles. More...
Functions | |
| def | copy_bundleinclude (exp_dir, bundle_dir) |
| Copy files and folders in the bundle according to the '.bundleinclude' file contained in exp_dir. More... | |
| def | temporary_cd (x) |
| Context manager to temporarily change the current working directory. More... | |
| def | parse_bundleinclude_line (line, exp_dir) |
| Parses a line of a .bundleinclude file. More... | |
Manages .bundleinclude file, which allows to explicitely include files and folders to bundles.
The items listed in .bundleinclude must be contained in the experiment directory or one of its subdirectories.
| def carputils.bundle.bundleinclude.copy_bundleinclude | ( | exp_dir, | |
| bundle_dir | |||
| ) |
Copy files and folders in the bundle according to the '.bundleinclude' file contained in exp_dir.
Files and folders can be provided using patterns, as in the glob module. Only files which are contained in the experiment directory or one of its subdirectories are copied.
| exp_dir | str the path to the original experiment directory. |
| bundle_dir | str the path to the bundle directory. |
| def carputils.bundle.bundleinclude.parse_bundleinclude_line | ( | line, | |
| exp_dir | |||
| ) |
Parses a line of a .bundleinclude file.
| line | str a line of a .bundleinclude file. It must contain a pattern to match files and folders within exp_dir. If the line is empty, an empty list is returned. |
| def carputils.bundle.bundleinclude.temporary_cd | ( | x | ) |
Context manager to temporarily change the current working directory.