SimpleRemote | Remote Administration Tools | Dashboard library
kandi X-RAY | SimpleRemote Summary
kandi X-RAY | SimpleRemote Summary
Remote Administration Tools
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SimpleRemote
SimpleRemote Key Features
SimpleRemote Examples and Code Snippets
Community Discussions
Trending Discussions on SimpleRemote
QUESTION
I'm using PyCharm and Python 3 and I have the next python folder layout:
...ANSWER
Answered 2017-Sep-22 at 12:25I guess that you run RemoteControlTest.py
directly.
Case A
Python's importer can't go to parent if the module was run directly as script instead of acquiring it going through the package structure.
The Python designers presumably didn't want to let submodules be called directly as scripts so there are no really good solutions for that. Mainly you can
- run the script with
python -m command.simpleremote.RemoteControlTest
whensrc
is either current directory or inPYTHONPATH
or - use a testing framework which does the calling for you.
A more detailed discussion of possible solutions can be found at Relative imports in Python 3.
Case B
A consequence of the direct start is that "src/command/simpleremote
" is in the module search path. "src
" seems also to be added to the path but after "src/command/simpleremote
".
Before case B on from command...
the import mechanism didn't find matching "command
" in "src/command/simpleremote
" and continued looking in "src
" where the command
package was found -> success.
In case B it findscommand.py
in "src/command/simpleremote
" which isn't a package -> error.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SimpleRemote
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page