devshell
Advanced tools
+1
-1
| Metadata-Version: 2.1 | ||
| Name: devshell | ||
| Version: 0.0.6 | ||
| Version: 0.0.7 | ||
| Summary: Shell-like tool to make it easier to develop python code | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/mmiguel6288code/devshell |
| Metadata-Version: 2.1 | ||
| Name: devshell | ||
| Version: 0.0.6 | ||
| Version: 0.0.7 | ||
| Summary: Shell-like tool to make it easier to develop python code | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/mmiguel6288code/devshell |
@@ -1,4 +0,4 @@ | ||
| __version__ = '0.0.6' | ||
| __version__ = '0.0.7' | ||
| from .injector import doctestify, set_end_interactive | ||
| from .shell import DevshellCmd | ||
@@ -539,5 +539,25 @@ #if you go inside a directory, the python part of things shoud stay up at the top package level | ||
| """ | ||
| if os.path.exists(args) and os.path.isdir(args): | ||
| if os.path.exists(os.path.join(args,'__init__.py')): | ||
| self.do_pcd(args) | ||
| import pdb; pdb.set_trace() | ||
| package_path = os.path.abspath(args) | ||
| highest_package_path = package_path | ||
| looking_path = os.path.dirname(package_path) | ||
| last_looking_path = None | ||
| while len(looking_path) > 0 and looking_path != last_looking_path: | ||
| if os.path.exists(os.path.join(looking_path,'__init__.py')): | ||
| highest_package_path = looking_path | ||
| last_looking_path = looking_path | ||
| looking_path = os.path.dirname(looking_path) | ||
| new_args = os.path.relpath(args,highest_package_path) | ||
| if new_args != args: | ||
| self.ppwd = [] | ||
| self._pls_cache = None | ||
| os.chdir(highest_package_path) | ||
| self.cwd = os.getcwd() | ||
| self.do_cd(new_args) | ||
| return | ||
| else: | ||
| self.do_pcd(args) | ||
| else: | ||
@@ -544,0 +564,0 @@ self.ppwd = [] |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
456337
0.21%1497
1.29%