This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
115 additions
and
40 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import sys | ||
import os | ||
from importlib import import_module | ||
|
||
|
||
# setup path | ||
chapter_name = "08-딥러닝을_해킹하는_Adversarial_Attack" | ||
dir_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), ".." , chapter_name) | ||
sys.path.append(dir_path) | ||
|
||
|
||
|
||
def test_chapter_exmaples(): | ||
mydir_tmp = os.path.join(dir_path) # add the testA folder name | ||
mydir_new = os.chdir(mydir_tmp) # change the current working directory | ||
mydir = os.getcwd() # set the main directory again, now it calls testA | ||
|
||
chapter_examples = [ | ||
"cartpole_dqn", | ||
] | ||
|
||
for example in chapter_examples: | ||
imported_package = import_module(example) | ||
|
||
if __name__ == "__main__": | ||
test_chapter_exmaples() |