Skip to content

Commit e2be272

Browse files
authored
respect windows slashes for packaging patch
1 parent 34ab825 commit e2be272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugindevtools/PluginDevTools/GetKritaAPI.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def updateData(self, kritaVersion, defaultTimeout = 5):
8787
if respath == '':
8888
respath = os.path.dirname(os.path.realpath(__file__))
8989
else:
90-
respath+='/pykrita/PluginDevTools'
90+
respath=os.path.join(respath,'pykrita','PluginDevTools')
9191
with open( respath + '.KritaAPI.'+kritaVersion+'.zip', 'wb') as f:
9292
f.write(data)
9393
f.close()
@@ -109,7 +109,7 @@ def parseData(self, kritaVersion):
109109
if respath == '':
110110
respath = os.path.dirname(os.path.realpath(__file__))
111111
else:
112-
respath+='/pykrita/PluginDevTools'
112+
respath=os.path.join(respath,'pykrita','PluginDevTools')
113113
with zipfile.ZipFile( respath + '.KritaAPI.'+kritaVersion+'.zip' ) as myzip:
114114
for fn in myzip.namelist():
115115
if fn.endswith('.h') and '/Test/' not in fn:

0 commit comments

Comments
 (0)