Skip to content

Commit d59d65f

Browse files
committed
change relative path
1 parent bb875ed commit d59d65f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def print_hi(name):
2626

2727
def readParameter():
2828
print("Begin!!!!!!!!")
29-
path = "C:\\Users\\darian\\PycharmProjects\\GANet\\Parameters\\"
29+
path = "../data/Parameters/"
3030
for file in os.listdir(path):
3131
# Check whether file is in text format or not
3232
if file.endswith(".txt"):
@@ -70,7 +70,7 @@ def run(Gi, parameters, file_path):
7070
# iterate from parameters
7171
iterationSize, populationSize, crossoverPc, mutationPm = parameters
7272

73-
pathResult = "C:\\Users\\darian\\PycharmProjects\\GANet\\Communities\\"
73+
pathResult = "../output/Communities/"
7474

7575
if file_path.__contains__('.paj'):
7676
pathResult = pathResult + file_path.replace('.paj', '')
@@ -100,7 +100,7 @@ def run(Gi, parameters, file_path):
100100

101101

102102
for c, p in results:
103-
fileName = open(pathResult + "\\" + p, 'w')
103+
fileName = open(pathResult + "/" + p, 'w')
104104
for ci in c:
105105
ci.sort()
106106
ci = str(ci).replace(',', '').replace('[', '').replace(']', '')
@@ -116,7 +116,7 @@ def run(Gi, parameters, file_path):
116116

117117
def create_graph():
118118

119-
path = "C:\\Users\\darian\\PycharmProjects\\GANet\\BD\\LFRNetsTest\\"
119+
path = "../data/BD/LFRNetsTest/"
120120
for file in os.listdir(path):
121121
# Check whether file is in text format or not
122122
if file.endswith(".dat") or file.endswith(".paj"):

0 commit comments

Comments
 (0)