diff options
author | John Wiegley <johnw@newartisans.com> | 2019-01-25 15:48:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-25 15:48:21 -0800 |
commit | 644db80fd377a4ee05bc2d6385b99ab152c13958 (patch) | |
tree | a2e236226332beb5f46a78ed82d0643e7371e873 /src/pyinterp.cc | |
parent | 14dc0b912bb9e51f28fa10e03fba962dec22c870 (diff) | |
parent | d0269e8c94dca6accba1d60e24ffb7f4b2f35932 (diff) | |
download | ledger-644db80fd377a4ee05bc2d6385b99ab152c13958.tar.gz ledger-644db80fd377a4ee05bc2d6385b99ab152c13958.tar.bz2 ledger-644db80fd377a4ee05bc2d6385b99ab152c13958.zip |
Merge pull request #1736 from scfc/drop-conditionals-for-boost-earlier-than-1-49
Drop conditionals for Boost earlier than 1.49
Diffstat (limited to 'src/pyinterp.cc')
-rw-r--r-- | src/pyinterp.cc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/pyinterp.cc b/src/pyinterp.cc index 19430bef..fad0b559 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003-2018, John Wiegley. All rights reserved. + * Copyright (c) 2003-2019, John Wiegley. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -222,27 +222,13 @@ object python_interpreter_t::import_option(const string& str) python::list paths(sys_dict["path"]); if (contains(str, ".py")) { -#if BOOST_VERSION >= 103700 path& cwd(parsing_context.get_current().current_directory); -#if BOOST_VERSION >= 104600 && BOOST_FILESYSTEM_VERSION >= 3 path parent(filesystem::absolute(file, cwd).parent_path()); -#else - path parent(filesystem::complete(file, cwd).parent_path()); -#endif DEBUG("python.interp", "Adding " << parent << " to PYTHONPATH"); paths.insert(0, parent.string()); sys_dict["path"] = paths; -#if BOOST_VERSION >= 104600 name = file.stem().string(); -#else - name = file.stem(); -#endif -#else // BOOST_VERSION >= 103700 - paths.insert(0, file.branch_path().string()); - sys_dict["path"] = paths; - name = file.leaf(); -#endif // BOOST_VERSION >= 103700 } try { |