mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Black the resoureces directory.
This commit is contained in:
@@ -36,7 +36,13 @@ def _zip_dir(archieve, path):
|
||||
|
||||
|
||||
def _mk_archieve():
|
||||
path = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "build", "dcs_liberation_{}.zip".format(VERSION))
|
||||
path = os.path.join(
|
||||
os.path.dirname(__file__),
|
||||
os.pardir,
|
||||
os.pardir,
|
||||
"build",
|
||||
"dcs_liberation_{}.zip".format(VERSION),
|
||||
)
|
||||
if os.path.exists(path):
|
||||
print("version already exists")
|
||||
return
|
||||
@@ -46,9 +52,9 @@ def _mk_archieve():
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
os.system("pyinstaller.exe --clean pyinstaller.spec")
|
||||
#archieve = ZipFile(path, "w")
|
||||
#archieve.writestr("dcs_liberation.bat", "cd dist\\dcs_liberation\r\nliberation_main \"%UserProfile%\\Saved Games\" \"{}\"".format(VERSION))
|
||||
#_zip_dir(archieve, "./dist/dcs_liberation")
|
||||
# archieve = ZipFile(path, "w")
|
||||
# archieve.writestr("dcs_liberation.bat", "cd dist\\dcs_liberation\r\nliberation_main \"%UserProfile%\\Saved Games\" \"{}\"".format(VERSION))
|
||||
# _zip_dir(archieve, "./dist/dcs_liberation")
|
||||
|
||||
|
||||
_mk_archieve()
|
||||
|
||||
Reference in New Issue
Block a user