Update resize.py
Browse files
resize.py
CHANGED
@@ -32,16 +32,16 @@ def main():
|
|
32 |
prepath = os.path.join(os.getcwd(), 'Combined')
|
33 |
batteryDir = os.path.join(prepath, 'battery')
|
34 |
biologicalDir = os.path.join(prepath, 'biological')
|
35 |
-
|
36 |
cardboardDir = os.path.join(prepath, 'cardboard')
|
37 |
clothesDir = os.path.join(prepath, 'clothes')
|
38 |
-
|
39 |
metalDir = os.path.join(prepath, 'metal')
|
40 |
paperDir = os.path.join(prepath, 'paper')
|
41 |
plasticDir = os.path.join(prepath, 'plastic')
|
42 |
shoesDir = os.path.join(prepath, 'shoes')
|
43 |
trashDir = os.path.join(prepath, 'trash')
|
44 |
-
|
45 |
|
46 |
destPath = os.path.join(os.getcwd(), 'Combined-resized')
|
47 |
try:
|
@@ -58,7 +58,7 @@ def main():
|
|
58 |
fileWalk(biologicalDir , os.path.join(destPath, 'biological'))
|
59 |
|
60 |
#BROWN-GLASS
|
61 |
-
fileWalk(
|
62 |
|
63 |
#CARDBOARD
|
64 |
fileWalk(cardboardDir, os.path.join(destPath, 'cardboard'))
|
@@ -67,7 +67,7 @@ def main():
|
|
67 |
fileWalk(clothesDir, os.path.join(destPath, 'clothes'))
|
68 |
|
69 |
#GREEN-GLASS
|
70 |
-
fileWalk(
|
71 |
|
72 |
#METAL
|
73 |
fileWalk(metalDir, os.path.join(destPath, 'metal'))
|
@@ -85,7 +85,7 @@ def main():
|
|
85 |
fileWalk(trashDir, os.path.join(destPath, 'trash'))
|
86 |
|
87 |
#WHITE-GLASS
|
88 |
-
fileWalk(
|
89 |
|
90 |
if __name__ == '__main__':
|
91 |
main()
|
|
|
32 |
prepath = os.path.join(os.getcwd(), 'Combined')
|
33 |
batteryDir = os.path.join(prepath, 'battery')
|
34 |
biologicalDir = os.path.join(prepath, 'biological')
|
35 |
+
brownglassDir = os.path.join(prepath, 'brown-glass')
|
36 |
cardboardDir = os.path.join(prepath, 'cardboard')
|
37 |
clothesDir = os.path.join(prepath, 'clothes')
|
38 |
+
greenglassDir = os.path.join(prepath, 'green-glass')
|
39 |
metalDir = os.path.join(prepath, 'metal')
|
40 |
paperDir = os.path.join(prepath, 'paper')
|
41 |
plasticDir = os.path.join(prepath, 'plastic')
|
42 |
shoesDir = os.path.join(prepath, 'shoes')
|
43 |
trashDir = os.path.join(prepath, 'trash')
|
44 |
+
whiteglassDir = os.path.join(prepath, 'white-glass')
|
45 |
|
46 |
destPath = os.path.join(os.getcwd(), 'Combined-resized')
|
47 |
try:
|
|
|
58 |
fileWalk(biologicalDir , os.path.join(destPath, 'biological'))
|
59 |
|
60 |
#BROWN-GLASS
|
61 |
+
fileWalk(brownglassDir, os.path.join(destPath, 'brown-glass'))
|
62 |
|
63 |
#CARDBOARD
|
64 |
fileWalk(cardboardDir, os.path.join(destPath, 'cardboard'))
|
|
|
67 |
fileWalk(clothesDir, os.path.join(destPath, 'clothes'))
|
68 |
|
69 |
#GREEN-GLASS
|
70 |
+
fileWalk(greenglassDir, os.path.join(destPath, 'green-glass'))
|
71 |
|
72 |
#METAL
|
73 |
fileWalk(metalDir, os.path.join(destPath, 'metal'))
|
|
|
85 |
fileWalk(trashDir, os.path.join(destPath, 'trash'))
|
86 |
|
87 |
#WHITE-GLASS
|
88 |
+
fileWalk(whiteglassDir, os.path.join(destPath, 'white-glass'))
|
89 |
|
90 |
if __name__ == '__main__':
|
91 |
main()
|