Skip to content

Commit e440436

Browse files
committed
Remove sys()
1 parent c55ff44 commit e440436

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/metadata_remover/commons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def r(f):
1818
def detect(cmd,web,snam,pkg):
1919
cls()
2020

21-
if sys() =='windows':
21+
if platform.system().lower() == 'windows' =='windows':
2222
if os.system(cmd+'>chk')!=0:
2323
print('\nError: '+pkg+' is not detected!')
2424
print('\nPlease wait opening '+snam +' website in your browser!\nYou Have to download and install it.\n')

src/metadata_remover/mrt.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import os, time
88
import metadata_remover.commons as c
9+
import platform
910

1011
# Function to write given message to file named log in append mode.
1112
def w(msg,file='log'):
@@ -118,7 +119,7 @@ def singly(x,y,mode='n'):
118119
def bulk():
119120
c.start()
120121
loc=input(' Enter Folder:')
121-
if c.sys() =='windows':
122+
if platform.system().lower() == 'windows' =='windows':
122123
if os.path.exists('exiftool.exe'):
123124
c.copy('exiftool.exe',loc+'\\exiftool.exe')
124125
os.chdir(loc)
@@ -140,7 +141,7 @@ def bulk():
140141
def bulk1():
141142
c.start()
142143
loc=input(' Enter Folder:')
143-
if c.sys() =='windows':
144+
if platform.system().lower() == 'windows' =='windows':
144145
if os.path.exists('exiftool.exe'):
145146
c.copy('exiftool.exe',loc+'\\exiftool.exe')
146147
if os.path.exists('ffmpeg.exe'):

0 commit comments

Comments
 (0)