schlichtanders.myos module

Felpers for the OS. Paths, files, ...

schlichtanders.myos.abspath(p)[source]
schlichtanders.myos.ensure_endswith_sep(path)[source]
schlichtanders.myos.json_minify(string, strip_space=True)[source]
schlichtanders.myos.load(filename)[source]

convenience function to easily load file

Parameters:filename – filename to load
Returns:string content of filename
schlichtanders.myos.manipulate_file(string_manipulater, file_path, *args, **kwargs)[source]

filepath gets first argument of string_manipulater, *args, **kwargs can pass all other arguments

Shall be used like working strings. Instead of string_manipulater(string, *args, **kwargs) The syntax gets kind of``string_manipulater, file, *args, **kwargs``

schlichtanders.myos.open_by_default_application(filepath)[source]
schlichtanders.myos.replace_unc(path)[source]