Comments (3)
?
from rope.
As a possible solution, I would change that function into this:
{{{
#!python
def _stdlib_path():
try:
# Try to get Python's libs path from the systems's default python interpreter.
import subprocess
args = ['python', '-c', 'import os; print os.path.dirname(os.file)']
return subprocess.Popen(args, stdout=subprocess.PIPE).communicate()[0].splitlines()[0]
except OSError:
# Get the Python's libs path for the interpreter executing this function.
import os
return os.path.dirname(os.file)
}}}
from rope.
I'm dumb. Of course distutils is a stdlib package. I got it wrong somehow.
Please close this issue as invalid. Sorry for the noise.
from rope.
Related Issues (20)
- Rename refactoring allow the use of Python keywords HOT 1
- Rename refactoring allow the use of the same name of the declared method in the superclass HOT 1
- Rename refactoring doesn't apply to the references of the renamed class HOT 1
- rope_autoimport doesn't work for neovim HOT 2
- Sort functions by usage
- Mistakes HOT 1
- rope incompatible with Python 3.12 HOT 2
- Support aliases in rope_autoimport HOT 3
- Calling Autoimport.connection.execute from differnt thread causes error HOT 1
- AutoImport's `get_modules` is case insensitive HOT 4
- Provide non editor-centric APIs HOT 2
- Small typo in https://rope.readthedocs.io/en/latest/contributing.html
- AutoImport.generate_modules_cache can be speeded up by 2x HOT 1
- RFE: is it possible to start making github releases?🤔 HOT 3
- 1.11.0: pytest is failing in `ropetest/contrib/autoimporttest.py::AutoImportTest::test_search_submodule` unit HOT 3
- 1.11.0: sphinx warnings `reference target not found` HOT 1
- Any prerequisites for a new release (> 1.6.0)? HOT 3
- MoveModule creates new top-level imports HOT 5
- Extract of incomplete block is allowed to half-execute
- autoimport does not correctly use index HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rope.