diff --git a/dzien_02/d_05_exif.py b/dzien_02/d_05_exif.py index d000414..b8a1737 100644 --- a/dzien_02/d_05_exif.py +++ b/dzien_02/d_05_exif.py @@ -1,4 +1,7 @@ from exif import Image + +print(f"Przestrzeń 1: {__name__}") + # otwarcie pliku def fn_file(file_name): try: @@ -31,12 +34,13 @@ def get_exif(image): -print(fn_file("images/IMG_123311x.jpg")) +if __name__ == "__main__": + print(fn_file("images/IMG_123311x.jpg")) -ok = fn_file("IMG_1233.jpg") -if ok: - if file_ok(ok): - print(get_exif(ok)) + ok = fn_file("IMG_1233.jpg") + if ok: + if file_ok(ok): + print(get_exif(ok)) -print(fn_file("to-do.md")) + print(fn_file("to-do.md")) diff --git a/dzien_02/d_06_import.py b/dzien_02/d_06_import.py new file mode 100644 index 0000000..857e348 --- /dev/null +++ b/dzien_02/d_06_import.py @@ -0,0 +1,24 @@ +from d_05_exif import * +import os +print(f"Przestrzeń 2: {__name__}") + +print('zaimportowano') +directory = "testy_os" + +for dirpath, dirname, files in os.walk(directory): + print(dirpath) + print(dirname) + print(files) + print('------------') + if files: + for every_file in files: + file_name = os.path.join(dirpath, every_file) + print(file_name) + ok = fn_file(file_name) + if ok: + if file_ok(ok): + print(get_exif(ok)) + + +# for ind, val in enumerate([2,33,34,33,5,4]): +# print(f"element nr {ind}: {val}") diff --git a/dzien_02/d_07_import.py b/dzien_02/d_07_import.py new file mode 100644 index 0000000..1d61c6a --- /dev/null +++ b/dzien_02/d_07_import.py @@ -0,0 +1,4 @@ +from d_06_import import * +print(f"Przestrzeń 3: {__name__}") + +print('zaimportowano w 3') \ No newline at end of file diff --git a/dzien_02/testy_os/a/IMG_20260311_091149.jpg b/dzien_02/testy_os/a/IMG_20260311_091149.jpg new file mode 100644 index 0000000..97b9dce Binary files /dev/null and b/dzien_02/testy_os/a/IMG_20260311_091149.jpg differ diff --git a/dzien_02/testy_os/b/IMG_20251020_075412.jpg b/dzien_02/testy_os/b/IMG_20251020_075412.jpg new file mode 100644 index 0000000..ad9008a Binary files /dev/null and b/dzien_02/testy_os/b/IMG_20251020_075412.jpg differ diff --git a/dzien_02/testy_os/b/IMG_20251021_112201.jpg b/dzien_02/testy_os/b/IMG_20251021_112201.jpg new file mode 100644 index 0000000..5dbb860 Binary files /dev/null and b/dzien_02/testy_os/b/IMG_20251021_112201.jpg differ diff --git a/dzien_02/testy_os/b/Zrzut ekranu_20251022_091213.png b/dzien_02/testy_os/b/Zrzut ekranu_20251022_091213.png new file mode 100644 index 0000000..2f5678c Binary files /dev/null and b/dzien_02/testy_os/b/Zrzut ekranu_20251022_091213.png differ diff --git a/dzien_02/testy_os/c/Zrzut ekranu_20250921_084910.png b/dzien_02/testy_os/c/Zrzut ekranu_20250921_084910.png new file mode 100644 index 0000000..88755e6 Binary files /dev/null and b/dzien_02/testy_os/c/Zrzut ekranu_20250921_084910.png differ diff --git a/dzien_02/testy_os/c/Zrzut ekranu_20250921_114735.png b/dzien_02/testy_os/c/Zrzut ekranu_20250921_114735.png new file mode 100644 index 0000000..10b6813 Binary files /dev/null and b/dzien_02/testy_os/c/Zrzut ekranu_20250921_114735.png differ