-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix to prevent setup.py from import theonionbox; addressing PEP#517. * Housekeeping: Removed some artefacts. * Dashboard: Session 'prepared' after successful login was not accepted as valid. Fixed. * Dashboard: Truncate __HashedControlSessionPassword (alike HashedControlPassword). No need to show this in full length. * 19.3 * Adjust Copyright info to '2020' * Additional commandline parameter: --password * gitignore nodes * Fixed install path for uptime (win); removed osxtemp source files (macos). * Obsolete modules removed. * Refactored the whole import system. Tried to account for PEP328 & get rid of CurrentWorkingDirectory patching. * ... 2020. * Ignoring RapydScript cache files. * Fixed import issue. * 20.1
- Loading branch information
1 parent
aab150c
commit 3a0af29
Showing
59 changed files
with
450 additions
and
813 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
#!/usr/bin/env python | ||
from __future__ import absolute_import | ||
import sys, os | ||
import os | ||
import pathlib | ||
import site | ||
import sys | ||
|
||
|
||
def main(): | ||
|
||
# the import executes the scripting part... | ||
if __name__ == '__main__': | ||
# we can't use relative imports here!! | ||
# get an absolute path to the directory that contains mypackage | ||
this_dir = os.path.dirname(os.path.join(os.getcwd(), __file__)) | ||
sys.path.append(os.path.normpath(os.path.join(this_dir, '..'))) | ||
if __name__ == '__main__' and __package__ in ['', None]: | ||
|
||
from theonionbox import main as onion_main | ||
# Being __main__, we need to add the current dir to the site-dirs, to allow ABSOLUTE import | ||
# We resolve this Path, as __file__ might be relative, if __name__ == __main__. | ||
cp = pathlib.Path(__file__).resolve() | ||
cp = cp.parent | ||
assert cp.exists() | ||
|
||
# Add the current dir to the site-dirs, to allow ABSOLUTE import | ||
site.addsitedir(cp) | ||
from theonionbox import main as onion_main | ||
else: | ||
# we're in a package => RELATIVE should work. | ||
from .theonionbox import main as onion_main | ||
|
||
# ... and main() launches the server! | ||
# The scripting part of theonionbox is being executed as we 'import'. | ||
# Now we launch the server: | ||
onion_main() | ||
|
||
|
||
if __name__ == '__main__': | ||
|
||
# args = sys.argv[1:] | ||
main() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__title__ = 'The Onion Box' | ||
__description__ = 'Dashboard to monitor Tor node operations.' | ||
__version__ = '19.3' | ||
__stamp__ = '20191229|232641' | ||
__version__ = '20.1' | ||
__stamp__ = '20200105|230447' |
Oops, something went wrong.