Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix python syntax for os.environ

Dmitry Kazakovd4450f09dcce
diff --git a/build-tools/ci-scripts/build-appimage.py b/build-tools/ci-scripts/build-appimage.py
index 8130b94dae..cb8843e135 100644
--- a/build-tools/ci-scripts/build-appimage.py
+++ b/build-tools/ci-scripts/build-appimage.py
@@ -37,10 +37,10 @@ filesToMove = os.listdir(stagingRoot)
for file in filesToMove:
shutil.move(os.path.join(stagingRoot, file), os.path.join(appdirPath, 'usr'))
-os.environ.putenv('KRITA_APPDIR_PATH', appdirPath)
-os.environ.putenv('KRITA_DOWNLOADS_PATH', downloadsPath)
-os.environ.putenv('KRITA_BUILD_PATH', buildPath)
-os.environ.putenv('KRITA_DEPS_PATH', depsPath)
+os.environ['KRITA_APPDIR_PATH'] = appdirPath
+os.environ['KRITA_DOWNLOADS_PATH'] = downloadsPath
+os.environ['KRITA_BUILD_PATH'] = buildPath
+os.environ['KRITA_DEPS_PATH'] = depsPath
commandToRun = ' '.join(['./packaging/linux/appimage/build-image.sh', packagingPath, os.path.abspath('.')])