carbatpy.helpers

Submodules

Attributes

END_NAME

Functions

copy_script_add_date(file_name_end, source_file, directory)

File handling, copy the actual py-File after

Package Contents

carbatpy.helpers.copy_script_add_date(file_name_end, source_file, directory)[source]

File handling, copy the actual py-File after adding the actual date-time and copy it to a directory which is also named date-time - file_name_end return the date-time for further usage

Parameters:
  • file_name_end (string) – the file name to be added to the date, also for the directory name.

  • source_file (string) – The source file to copy (from __file__).

  • directory (string) – The directory to copy to.

Returns:

directory – The new directory name and the file name(s) without extension.

Return type:

String

carbatpy.helpers.END_NAME = 'test'[source]