change token.txt location
This commit is contained in:
parent
c86a67d06c
commit
e206113949
@ -12,11 +12,11 @@ workdir/
|
|||||||
├── build_engine_sdk/
|
├── build_engine_sdk/
|
||||||
├── poomer-discord-hello-world/
|
├── poomer-discord-hello-world/
|
||||||
└── lib
|
└── lib
|
||||||
└── dpp # contains include files of D++
|
└── dpp # contains include files of
|
||||||
|
└─â”token.txt
|
||||||
├── DPP/
|
├── DPP/
|
||||||
├── makefile
|
├── makefile
|
||||||
├── README.md
|
├── README.md
|
||||||
└── token.txt
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Linux
|
## Linux
|
||||||
|
|||||||
@ -26,7 +26,7 @@ int main() {
|
|||||||
if (!token_file.is_open()) {
|
if (!token_file.is_open()) {
|
||||||
// if not, try parent directory
|
// if not, try parent directory
|
||||||
if (!token_file.is_open()) {
|
if (!token_file.is_open()) {
|
||||||
token_file_path = "../token.txt";
|
token_file_path = "token.txt";
|
||||||
token_file.open(token_file_path);
|
token_file.open(token_file_path);
|
||||||
if (!token_file.is_open())
|
if (!token_file.is_open())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user