Skip to content

Commit 5c88071

Browse files
committed
ignore automatically install modules.
1 parent 7afefc7 commit 5c88071

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

ImportPhotos.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
import os
3535
import uuid
3636
import json
37-
try:
38-
import subprocess
39-
except:
40-
pass
4137

4238
# Import python module
4339
CHECK_MODULE = ''
@@ -46,22 +42,15 @@
4642

4743
CHECK_MODULE = 'exifread'
4844
except:
49-
try:
50-
subprocess.call(['pip', 'install', 'exifread'])
51-
CHECK_MODULE = ''
52-
except ModuleNotFoundError:
53-
pass
45+
CHECK_MODULE = ''
46+
5447
try:
5548
if CHECK_MODULE == '':
5649
from PIL import Image
5750
from PIL.ExifTags import TAGS
5851
CHECK_MODULE = 'PIL'
5952
except:
60-
try:
61-
subprocess.call(['pip', 'install', 'pillow'])
62-
CHECK_MODULE = ''
63-
except ModuleNotFoundError:
64-
pass
53+
CHECK_MODULE = ''
6554

6655
FORM_CLASS, _ = uic.loadUiType(os.path.join(
6756
os.path.dirname(__file__), 'ui/impphotos.ui'))

code/PhotosViewer.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
opencv = True
3636
except:
3737
opencv = False
38-
try:
39-
subprocess.call(['pip', 'install', 'opencv-python'])
40-
opencv = True
41-
except ModuleNotFoundError:
42-
pass
4338

4439

4540
class PhotosViewer(QGraphicsView):

metadata.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ repository=https://github.com/KIOS-Research/ImportPhotos/
2424
# Recommended items:
2525
# Uncomment the following line and add your changelog:
2626
changelog=2023-01-04 ImportPhotos 3.0.5:
27-
Automatically install some modules (exifread, pillow, opencv-python)
28-
Add label space in the window of the photo
27+
Show the photo in the tooltip window
28+
Add label space in the window of the photo (show the title/name of the file more clearly)
2929
Fix some issues with empty fields (Thanks @gaspermeister)
3030
Fix python type error on photos viewer setGeometry (Thanks @faebebin)
3131
Fix the error if the file in the Path field doesn't exist (Thanks @KrisRadowski, @turzik-x)

0 commit comments

Comments
 (0)