ponty

Results 61 comments of ponty

The same concept with less magic: ``` python def choose_by_distrib_family(default, **kwargs): return dict(**kwargs).get(distrib_family(), default) # Simple case require.system.package( choose_by_distrib_family('git', debian='git-core', sun='scmgit-base')) # multiple packages require.system.packages([ 'curl', 'python-dev', choose_by_distrib_family(default='git', debian='git-core', sun='scmgit-base'),...

Most of the functions in system.py can be cached, but this should be a new ticket. This could be implemented using memoization. Original code: http://stackoverflow.com/questions/1988804/what-is-memoization-and-how-can-i-use-it-in-python Modified with `env.host` ``` python...

I didn't implemented it yet.

See also #48 #24 #55. I think that it is not possible to implement such option generally, so I don't plan to add it. What is your use case? Why...

Try dispmanx_vnc. I use this fork: https://github.com/Na1w/dispmanx_vnc

_"FileNotFoundError: [Errno 2] No such file or directory: 'xmessage'"_ You should install `xmessage` for this example. On Ubuntu 20.04: ```shell $ sudo apt install x11-utils ``` Ι updated the README.

I created a test for a rar file with password. The test passes on all platforms. https://github.com/ponty/pyunpack/actions/runs/1734014609 The test: https://github.com/ponty/pyunpack/blob/master/tests/test_rarpw.py The rar file: https://github.com/ponty/pyunpack/blob/master/tests/testpw.rar Check this file if it hangs...

Check if patool is in your PATH. (Run `patool` in command line) Reinstall patool, check if patool works with rar file: ```shell $ patool --non-interactive extract testpw.rar patool: Extracting testpw.rar...

This is a patool feature. If you run directly `C:\Program Files\7-Zip\7z.EXE x -y -- testpw.rar` then 7z will stop for password input. This is my run on Linux: ```shell $...

#14 is a nice addition but it doesn't solve this issue: starting extractall without password hangs sometimes. The problem is in the patool implementation. However your use case may be...