mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-24 16:08:11 +01:00
repairs plugin creation inside the devcontainer
strange windows volume behaviour needs a small delay between template folder unzip and rename. reverts user changes of the dev container which werent the cause of this problem.
This commit is contained in:
parent
e7aa0a64c7
commit
50fa87d6df
2 changed files with 5 additions and 2 deletions
|
@ -47,5 +47,5 @@
|
||||||
//"postCreateCommand": "pip3 install -r ./requirements.txt",
|
//"postCreateCommand": "pip3 install -r ./requirements.txt",
|
||||||
|
|
||||||
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
|
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
|
||||||
// "remoteUser": "vscode"
|
"remoteUser": "vscode"
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ from importlib_metadata import metadata
|
||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
from PyInquirer import prompt, print_json
|
from PyInquirer import prompt, print_json
|
||||||
import platform
|
import platform
|
||||||
|
import time
|
||||||
|
|
||||||
class CraftBeerPiCli():
|
class CraftBeerPiCli():
|
||||||
def __init__(self, config) -> None:
|
def __init__(self, config) -> None:
|
||||||
|
@ -100,7 +101,9 @@ class CraftBeerPiCli():
|
||||||
with ZipFile('temp.zip', 'r') as repo_zip:
|
with ZipFile('temp.zip', 'r') as repo_zip:
|
||||||
repo_zip.extractall()
|
repo_zip.extractall()
|
||||||
|
|
||||||
os.rename("./craftbeerpi4-plugin-template-main", os.path.join(".", name))
|
time.sleep(1) # windows dev container permissions problem otherwise
|
||||||
|
|
||||||
|
os.rename(os.path.join(".","craftbeerpi4-plugin-template-main"), os.path.join(".", name))
|
||||||
os.rename(os.path.join(".", name, "src"), os.path.join(".", name, name))
|
os.rename(os.path.join(".", name, "src"), os.path.join(".", name, name))
|
||||||
|
|
||||||
import jinja2
|
import jinja2
|
||||||
|
|
Loading…
Reference in a new issue