pex console_scripts unavailable

2018-06-01 Thread WaffleSouffle
Python module with the following file structure: . ├── mefoo │   ├── __init__.py │   ├── bar.py │   └── command_line │   ├── __init__.py │   ├── cli1.py │   └── cli2.py └── setup.py Stripped down `setup.py` is #!/usr/bin/env python3 i

pex console_scripts unavailable

2018-06-01 Thread WaffleSouffle
I'd like to embed console_scripts in a pex file and be able to use them by specifying them when invoking the pex file. The details are... Python module with the following file structure: . ├── mefoo │   ├── __init__.py │   ├── bar.py │   └── command_line │   ├── __ini

Re: os.path.dirname(sys.argv[0]) always returns nothing

2011-08-09 Thread WaffleSouffle
On Aug 2, 12:57 am, Gregory Ewing wrote: > Thijs Engels wrote: > > argv[0] returns the name of the current file (string), but no path > > information if I recall correct. > > It's the path that was used to specify the script by whatever > launched it, so it could be either absolute or relative to