New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

devshell

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devshell - pypi Package Compare versions

Comparing version
0.0.6
to
0.0.7
+1
-1
PKG-INFO
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 = []