Skip to content

Commit

Permalink
Merge pull request #21 from Kortemme-Lab/ckrivacic/fixing_01_setup
Browse files Browse the repository at this point in the history
Made a couple fixes to 01_setup_workspace which fixed a bug that didn…
  • Loading branch information
kalekundert committed Apr 11, 2018
2 parents 499af62 + c90ad64 commit 0c43f75
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pull_into_place/commands/01_setup_workspace.py
Expand Up @@ -86,7 +86,14 @@ def install(workspace, rosetta_dir):
message.append(' ' + path)
raise ValueError('\n'.join(message))

os.symlink(rosetta_dir, workspace.rosetta_dir)
os.symlink(rosetta_dir, workspace.rosetta_dir)

@staticmethod
def already_installed(workspace):
if os.path.exists(workspace.rosetta_dir):
return True

return False


class ProjectParams(Installer):
Expand Down Expand Up @@ -344,6 +351,8 @@ class RsyncUrl(Installer):

@staticmethod
def install(workspace, rsync_url):
if not os.path.exists(workspace.project_params_dir):
scripting.mkdir(workspace.project_params_dir)
with open(workspace.rsync_url_path, 'w') as file:
file.write(rsync_url.strip() + '\n')

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -46,6 +46,7 @@ def define_command(module, extras=None):
'big_jobs/*.py',
'big_jobs/*.xml',
'big_jobs/*.wts',
'big_jobs/standard_params/*',
],
},
install_requires=[
Expand Down

0 comments on commit 0c43f75

Please sign in to comment.