Skip to content

Commit

Permalink
can generate typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft committed Jun 4, 2024
1 parent 40aec67 commit de79d1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/typespec-python/scripts/venvtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def python_run(venv_context, module, command=None, *, additional_dir="."):
print("Executing: {}".format(" ".join(cmd_line)))
subprocess.run(
cmd_line,
cwd=_ROOT_DIR / additional_dir,
cwd=_ROOT_DIR / "pygen" / additional_dir,
check=True,
)
except subprocess.CalledProcessError as err:
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-python/src/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function createPythonSdkContext<TServiceOperation extends SdkServiceOperation>(
export async function $onEmit(context: EmitContext<PythonEmitterOptions>) {
const program = context.program;
const sdkContext = createPythonSdkContext<SdkHttpOperation>(context);
const root = path.join(dirname(fileURLToPath(import.meta.url)), "..", "..", "pygen");
const root = path.join(dirname(fileURLToPath(import.meta.url)), "..", "..");
const outputDir = context.emitterOutputDir;
const yamlMap = emitCodeModel(sdkContext);
addDefaultOptions(sdkContext);
Expand Down

0 comments on commit de79d1e

Please sign in to comment.