Skip to content

Commit

Permalink
remove symlink kludge for long paths
Browse files Browse the repository at this point in the history
  • Loading branch information
baltzell committed Apr 24, 2024
1 parent f5bf8c7 commit 6ea1b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
9 changes: 3 additions & 6 deletions gibuu/gibuu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import os.path
config_template = os.path.abspath(os.getenv('GIBUU','.')+'/gibuu_template.opt')
gibuu_executable = os.path.abspath(os.getenv('GIBUU','.')+'/release/objects/GiBUU.x')
gibuu_converter = os.path.abspath(os.getenv('GIBUU','.')+'/gibuu2lund')
buu_directory = os.path.abspath('./buuinput')
buu_directory = os.path.abspath(os.getenv('GIBUU','.')+'/buuinput')

from argparse import Namespace
target_choices = {
Expand Down Expand Up @@ -43,11 +43,8 @@ if not os.path.isfile(gibuu_executable):
cli.error('Could not find GiBUU.x executable at $GIBUU or .')
if not os.path.isfile(gibuu_converter):
cli.error('Could not find gibuu2lund executable at $GIBUU or .')
if os.getenv('GIBUU') is not None:
if os.path.exists('./buuinput'):
print('WARNING: Using existing local ./buuinput')
else:
os.symlink(os.getenv('GIBUU')+'/buuinput','./buuinput')
if not os.path.isdir(buu_directory):
cli.error('Could not find buuinput directory at $GIBUU or .')

args = cli.parse_args(sys.argv[1:])

Expand Down
11 changes: 0 additions & 11 deletions gibuu/patches/input.patch

This file was deleted.

0 comments on commit 6ea1b64

Please sign in to comment.