-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing paths and fixed bug in don corleone
- Loading branch information
Showing
6 changed files
with
25 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,8 @@ | |
import os | ||
import threading | ||
import time | ||
|
||
import sys | ||
sys.path.append(os.path.abspath("..")) | ||
from don_corleone import don_utils as du | ||
|
||
def run_master(): | ||
|
@@ -32,10 +33,17 @@ def run_slave(): | |
|
||
if __name__ == '__main__': | ||
|
||
#TODO: use os.path.join not + - it is bug prone | ||
OCEAN_ROOT = du.get_ocean_root_dir() | ||
|
||
DATA_FILE = OCEAN_ROOT + '/data/contentsource_nodes_1000' | ||
|
||
if not os.path.exists(DATA_FILE): | ||
#TODO: add logger | ||
print "Please download contentsource_nodes_1000 for Ocean Don Corleone" | ||
print "You can use this command: scp [email protected]:/webapps/ocean/data/contentsource_nodes_1000 . " | ||
|
||
|
||
TEMP_SPIDERCRAB_CONFIG = OCEAN_ROOT + '/data/spidercrab_1000_test_config' | ||
TEMP_SPIDERCRAB_STATS_EXPORT = \ | ||
OCEAN_ROOT + '/data/spidercrab_1000_test_stats' | ||
|
@@ -142,4 +150,4 @@ def run_slave(): | |
if not os.path.isfile(temp_file): | ||
print '... no such a file or file.' | ||
else: | ||
os.remove(temp_file) | ||
os.remove(temp_file) |
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