Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
khyatimahendru committed Jan 28, 2025

Verified

This commit was signed with the committer’s verified signature. The key has expired.
Czaki Grzegorz Bokota
1 parent e1b2728 commit 7ced512
Showing 12 changed files with 7 additions and 12 deletions.
17 changes: 6 additions & 11 deletions bin/gencode_python
Original file line number Diff line number Diff line change
@@ -263,19 +263,14 @@ def generate_class(contents):
def generate_module(in_files):
shutil.rmtree(OUT_DIR, ignore_errors=True)
os.makedirs(OUT_DIR, exist_ok=True)
udmi_dir = os.path.dirname(OUT_DIR)
python_dir = os.path.dirname(udmi_dir)

parts = OUT_DIR.split(os.sep)
python_dir = os.path.join(*parts[0:2])
udmi_dir = os.path.join(*parts[0:3])
open(os.path.join(udmi_dir, '__init__.py'), 'w').close()
open(os.path.join(python_dir, '__init__.py'), 'w').close()

python_init_path = os.path.join(python_dir, '__init__.py')
open(python_init_path, 'w').close()

udmi_init_path = os.path.join(udmi_dir, '__init__.py')
open(udmi_init_path, 'w').close()

schema_init_path = os.path.join(OUT_DIR, '__init__.py')
with open(schema_init_path, 'w') as fd:
full_path = os.path.join(OUT_DIR, '__init__.py')
with open(full_path, 'w') as fd:
writer = lambda line: fd.write(line + '\n')
for in_file in in_files:
try:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion misc/udmi4py/pyproject.toml → misc/pyudmi/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "udmi4py"
name = "pyudmi"
version = "0.1.0"
description = "A Python library for UDMI"
authors = [
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7ced512

Please sign in to comment.