mirror of
https://github.com/platformio/platformio-core.git
synced 2025-09-30 07:40:54 +02:00
Workaround for a broken locale
This commit is contained in:
@@ -150,14 +150,18 @@ def project_init(
|
|||||||
if not silent:
|
if not silent:
|
||||||
if project_dir == os.getcwd():
|
if project_dir == os.getcwd():
|
||||||
click.secho("\nThe current working directory ", fg="yellow", nl=False)
|
click.secho("\nThe current working directory ", fg="yellow", nl=False)
|
||||||
click.secho(" %s " % project_dir, fg="cyan", nl=False)
|
try:
|
||||||
|
click.secho(project_dir, fg="cyan", nl=False)
|
||||||
|
except UnicodeEncodeError:
|
||||||
|
click.secho(json.dumps(project_dir), fg="cyan", nl=False)
|
||||||
click.secho(" will be used for the project.", fg="yellow")
|
click.secho(" will be used for the project.", fg="yellow")
|
||||||
click.echo("")
|
click.echo("")
|
||||||
|
|
||||||
click.echo(
|
click.echo("The next files/directories have been created in ", nl=False)
|
||||||
"The next files/directories have been created in %s"
|
try:
|
||||||
% click.style(project_dir, fg="cyan")
|
click.secho(project_dir, fg="cyan")
|
||||||
)
|
except UnicodeEncodeError:
|
||||||
|
click.secho(json.dumps(project_dir), fg="cyan")
|
||||||
click.echo(
|
click.echo(
|
||||||
"%s - Put project header files here" % click.style("include", fg="cyan")
|
"%s - Put project header files here" % click.style("include", fg="cyan")
|
||||||
)
|
)
|
||||||
|
@@ -86,7 +86,7 @@ def set_caller(caller=None):
|
|||||||
caller = "CA"
|
caller = "CA"
|
||||||
elif getenv("CHE_API", getenv("CHE_API_ENDPOINT")):
|
elif getenv("CHE_API", getenv("CHE_API_ENDPOINT")):
|
||||||
caller = "Che"
|
caller = "Che"
|
||||||
app.set_session_var("caller_id", caller)
|
return app.set_session_var("caller_id", caller)
|
||||||
|
|
||||||
|
|
||||||
class Upgrader(object):
|
class Upgrader(object):
|
||||||
|
Reference in New Issue
Block a user