Commit 71dfe14c authored by ext-bershanska_a's avatar ext-bershanska_a
Browse files

removed EDIT comments

parent 17aec369
...@@ -28,7 +28,7 @@ def linkDirectory(path, name=''): ...@@ -28,7 +28,7 @@ def linkDirectory(path, name=''):
if os.listdir(path): if os.listdir(path):
os.system('cp -rs '+path+'/* .') os.system('cp -rs '+path+'/* .')
def linkFile(path, name): #EDIT: new helper function for convenience def linkFile(path, name):
'''Make a file available in working directory with a symbolic link''' '''Make a file available in working directory with a symbolic link'''
path = os.path.join(path,name) path = os.path.join(path,name)
if not os.path.isfile(path): if not os.path.isfile(path):
...@@ -54,12 +54,12 @@ class Simulation: ...@@ -54,12 +54,12 @@ class Simulation:
# If there's already a directory remove it... # If there's already a directory remove it...
if os.path.isdir(self.dirname): if os.path.isdir(self.dirname):
if doKeep: if doKeep:
print( 'KEEP existing directory {}'.format(self.dirname)) print('KEEP existing directory {}'.format(self.dirname))
print( self.dirname) print(self.dirname)
return False return False
else: else:
if quiet == False: if quiet == False:
print( 'REMOVE existing directory {}'.format(self.dirname)) print('REMOVE existing directory {}'.format(self.dirname))
shutil.rmtree(self.dirname) shutil.rmtree(self.dirname)
# create directory # create directory
...@@ -112,7 +112,6 @@ class Simulation: ...@@ -112,7 +112,6 @@ class Simulation:
with open(oinpFile, 'w') as file: with open(oinpFile, 'w') as file:
file.write(filedata) file.write(filedata)
#EDIT: Link .tmpl and .dat files or OPTIMIZE
#NOTE: What's the best place to link tmpl file? $TEMPLATES, _TEMPLATEDIR_, or parisng? #NOTE: What's the best place to link tmpl file? $TEMPLATES, _TEMPLATEDIR_, or parisng?
if doOptimize: if doOptimize:
flag = False flag = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment