Skip to content

Commit e5318aa

Browse files
committed
fixed a typo in inverter.py
1 parent d114064 commit e5318aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

IMAGES & PHOTO SCRIPTS/Image-Inverter/inverter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/usr/bin/env python3
22

3-
from PIL import Image, ImageOps
3+
from PIL import Image
4+
from PIL import ImageOps
45
import sys, os
56

67
def main():
78
if len(sys.argv) == 1:
89
print("Please provide files to operate on!")
910
sys.exit(1)
1011

11-
for file in sys.argv:
12+
for file in sys.argv: # TODO: remove the sys.argv[0] from the loop! use index i and start from 1
1213
# TODO: add a check that the files are jpg
1314
file_name = os.path.splitext(file)
1415
with Image.open(file) as image:

0 commit comments

Comments
 (0)