Merge pull request #13003 from Ultimaker/CURA-8792_update_pycharm_run_config

[CURA-8792] Move run configuration templates out of conan-config into this repo.
This commit is contained in:
Jelle Spijker 2022-08-11 18:09:05 +02:00 committed by GitHub
commit 00d99d10b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 161 additions and 17 deletions

View file

@ -1,11 +1,6 @@
import os
import sys
from pathlib import Path
from io import StringIO
from platform import python_version
from jinja2 import Template
from conans import tools
@ -59,18 +54,9 @@ class CuraConan(ConanFile):
"revision": "auto"
}
# TODO: Add unit tests (but they need a different jinja template
_pycharm_targets = [{
"name": "cura",
"module_name": "Cura",
"script_name": "cura_app.py",
}, {
"name": "cura_external_engine",
"module_name": "Cura",
"script_name": "cura_app.py",
"parameters": "--external-backend"
}
]
@property
def _pycharm_targets(self):
return self.conan_data["pycharm_targets"]
# FIXME: These env vars should be defined in the runenv.
_cura_env = None