Skip to content

Commit 2260924

Browse files
committed
remove the improve UX code
2 parents b55b456 + 3fcb454 commit 2260924

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

pycyphal/dsdl/_compiler.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -210,24 +210,6 @@ def compile( # pylint: disable=redefined-builtin
210210
)
211211
support_generator.generate_all()
212212

213-
# A minor UX improvement; see https://github.com/OpenCyphal/pycyphal/issues/115
214-
for p in sys.path:
215-
if pathlib.Path(p).resolve() == pathlib.Path(output_directory):
216-
break
217-
else:
218-
if os.name == "nt":
219-
quick_fix = f'Quick fix: `$env:PYTHONPATH += ";{output_directory.resolve()}"`'
220-
elif os.name == "posix":
221-
quick_fix = f'Quick fix: `export PYTHONPATH="{output_directory.resolve()}"`'
222-
else:
223-
quick_fix = "Quick fix is not available for this OS."
224-
_logger.info(
225-
"Generated package is stored in %r, which is not in Python module search path list. "
226-
"The package will fail to import unless you add the destination directory to sys.path or PYTHONPATH. %s",
227-
str(output_directory),
228-
quick_fix,
229-
)
230-
231213
return GeneratedPackageInfo(
232214
path=pathlib.Path(output_directory) / pathlib.Path(root_namespace_name),
233215
models=composite_types,

pycyphal/dsdl/_lockfile.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Copyright (c) 2025 OpenCyphal
2-
# This software is distributed under the terms of the MIT License.
3-
# Author: Huong Pham <[email protected]>
4-
5-
61
import logging
72
import pathlib
83
import time

0 commit comments

Comments
 (0)