Skip to content

Commit

Permalink
python: fix package naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Sep 18, 2023
1 parent 642d020 commit e6c4ac8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generators/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package generators
import (
"fmt"
"os"
"strings"
"text/template"

"github.com/iancoleman/strcase"
Expand Down Expand Up @@ -83,7 +84,7 @@ func GeneratePythonSDK(cfg *GenerateCfg) error {

// create the Python package structure and set the ContractOutput to the open file handle
func createPythonPackage(cfg *GenerateCfg) error {
sdkDir := cfg.SdkDestination + cfg.Manifest.Name
sdkDir := cfg.SdkDestination + strings.ToLower(cfg.Manifest.Name)
err := os.MkdirAll(sdkDir, 0755)
if err != nil {
return fmt.Errorf("can't create directory %s: %w", sdkDir, err)
Expand Down

0 comments on commit e6c4ac8

Please sign in to comment.