Compare commits
1 commit
master
...
nozomi-hir
Author | SHA1 | Date | |
---|---|---|---|
![]() |
fa629d30ee |
21
LICENSE
21
LICENSE
|
@ -1,21 +0,0 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2022 Gered King
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the “Software”), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
# Update (by Entwicklerpages): Simple fixes for python3 support. Now works on both versions.
|
||||
|
||||
import io
|
||||
import os
|
||||
import stat
|
||||
import shutil
|
||||
|
@ -66,7 +67,7 @@ for i in os.listdir(workingDir):
|
|||
for j in os.listdir(rootFile):
|
||||
# grab the real path
|
||||
if j == 'pathname':
|
||||
lines = [line.strip() for line in open(os.path.join(rootFile, j))]
|
||||
lines = [line.strip() for line in open(os.path.join(rootFile, j),'r',encoding="utf-8_sig")]
|
||||
realPath = lines[0] # should always be on the first line
|
||||
elif j == 'asset':
|
||||
hasAsset = True
|
||||
|
@ -83,6 +84,8 @@ for i in os.listdir(workingDir):
|
|||
|
||||
os.makedirs(outputDir)
|
||||
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding=sys.stdout.encoding, errors="replace")
|
||||
|
||||
for asset in mapping:
|
||||
path, filename = os.path.split(mapping[asset])
|
||||
|
||||
|
|
Loading…
Reference in a new issue