pyfmu.builder.utils¶
Module Contents¶
-
pyfmu.builder.utils.zipdir(inDir: str, outDir: str)¶
-
pyfmu.builder.utils.rm(path)¶ Delete a file or a directory
- Arguments:
p {Path} – path to a directory or a file
-
pyfmu.builder.utils.compress(in_dir, out_dir=None, fmt='zip', extension: str = None)¶ Compresses
- Arguments:
in_dir {[type]} – the directory to compress
- Keyword Arguments:
out_dir {[type]} – output archive (default: {None})
-
class
pyfmu.builder.utils.cd(newPath)¶ Context manager for changing the current working directory
-
__enter__(self)¶
-
__exit__(self, etype, value, traceback)¶
-
-
pyfmu.builder.utils.has_java()¶ Checks if java is available in the system’s path.
- Returns:
[bool] – true if java is available, otherwise false.
-
pyfmu.builder.utils.has_fmpy() → bool¶ Checks if FMPy is available
- Returns:
bool – true if FMPy is available, otherwise false.
-
pyfmu.builder.utils.inPath¶