File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -210,24 +210,6 @@ def compile( # pylint: disable=redefined-builtin
210
210
)
211
211
support_generator .generate_all ()
212
212
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
-
231
213
return GeneratedPackageInfo (
232
214
path = pathlib .Path (output_directory ) / pathlib .Path (root_namespace_name ),
233
215
models = composite_types ,
Original file line number Diff line number Diff line change 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
-
6
1
import logging
7
2
import pathlib
8
3
import time
You can’t perform that action at this time.
0 commit comments