pinliner
pinliner copied to clipboard
Python Inliner merges in a single file all files from a Python package.

When I try and run: `pinliner ./my_package_name -o ../my_package_name.py` I get the error: ` parser = MyParser(description=general_description, version=__version__, TypeError: __init__() got an unexpected keyword argument '` Any fix ideas?
Please update the version on pypi with the current state of your project. Thanks!
Another issue. When the final bundle is called several times within the same directory (i.e. with a BAT file), loading of modules fails with message "ImportError: invalid flags 1730942170 in...
It seems having "imp" is still working in python 3.10 but not 3.12+ The solution is looking simple, we should change "imp" to "importlib", but in fact more changes are...
I believe triple quotes escaping is wrong. I suggest this change: in process_files, where we start the block with injected modules, instead of `output(cfg, "'''")`, add `output(cfg, "r'''")`. Explanation: if...
There is some issue. I'll try to locate the problem but I'll post here for visibility first. Sometimes with some of the files this tool works fine. But sometimes it...
delete all .pyc files in a folder - addresses https://github.com/Akrog/pinliner/issues/11
File "\Lib\site-packages\pinliner\pinliner.py", line 189, in main process_files(cfg) ~~~~~~~~~~~~~^^^^^ File "\Lib\site-packages\pinliner\pinliner.py", line 80, in process_files files.extend(process_directory(cfg, base_dir, module_name)) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "\Lib\site-packages\pinliner\pinliner.py", line 66, in process_directory files.append(process_file(cfg, base_dir, next_path)) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "\Lib\site-packages\pinliner\pinliner.py",...