mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Remove Python 2.6 code
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
|
||||
import sys
|
||||
|
||||
VERSION = (3, 0, "0.dev18")
|
||||
VERSION = (3, 0, "0.dev19")
|
||||
__version__ = ".".join([str(s) for s in VERSION])
|
||||
|
||||
__title__ = "platformio"
|
||||
|
@ -43,8 +43,6 @@ def cli():
|
||||
r = None
|
||||
try:
|
||||
for cmd in cmds:
|
||||
if sys.version_info < (2, 7, 0):
|
||||
cmd[0] += ".__main__"
|
||||
cmd = [os.path.normpath(sys.executable), "-m"] + cmd
|
||||
r = None
|
||||
r = util.exec_command(cmd)
|
||||
|
@ -63,11 +63,7 @@ class ProjectGenerator(object):
|
||||
envdata = self.get_project_env()
|
||||
if "env_name" not in envdata:
|
||||
return data
|
||||
cmd = [
|
||||
normpath(sys.executable), "-m",
|
||||
"platformio" + (".__main__"
|
||||
if sys.version_info < (2, 7, 0) else ""), "-f"
|
||||
]
|
||||
cmd = [normpath(sys.executable), "-m", "platformio", "-f"]
|
||||
if app.get_session_var("caller_id"):
|
||||
cmd.extend(["-c", app.get_session_var("caller_id")])
|
||||
cmd.extend(["run", "-t", "idedata", "-e", envdata['env_name']])
|
||||
|
Reference in New Issue
Block a user