Skip to content

Commit

Permalink
changed the config and result dir into a sub-dir of python
Browse files Browse the repository at this point in the history
  • Loading branch information
tempookian committed Apr 13, 2023
1 parent d3aac94 commit 77cb1ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ python/__pycache__/
python/*/__pycache__/
python/.vscode/
python/*/log/
python/.xray-configs
.tmp
golang/CFScanner
windows/*.rsuser
Expand Down
1 change: 1 addition & 0 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,6 @@ Contributors names and contact info
* 1.2.0
* Added progress bar
* Improved logging

[python]: https://img.shields.io/badge/-Python-3776AB?logo=python&logoColor=white
[version]: https://img.shields.io/badge/Version-1.2.0-blue
4 changes: 2 additions & 2 deletions python/cfscanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
console = Console()

SCRIPTDIR = os.path.dirname(os.path.realpath(__file__))
CONFIGDIR = f"{SCRIPTDIR}/../config"
RESULTDIR = f"{SCRIPTDIR}/../result"
CONFIGDIR = f"{SCRIPTDIR}/.xray-configs"
RESULTDIR = f"{SCRIPTDIR}/result"
START_DT_STR = datetime.now().strftime(r"%Y%m%d_%H%M%S")
INTERIM_RESULTS_PATH = os.path.join(RESULTDIR, f'{START_DT_STR}_result.csv')

Expand Down

0 comments on commit 77cb1ef

Please sign in to comment.