Skip to content

Commit f1a01a3

Browse files
committed
remove noop os.path.join() from module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
1 parent 5041594 commit f1a01a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+690
-543
lines changed

atomate/common/firetasks/tests/test_glue_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
__author__ = "Anubhav Jain <[email protected]>"
2020

21-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
21+
module_dir = os.path.dirname(os.path.abspath(__file__))
2222
db_dir = os.path.join(module_dir, "..", "..", "test_files")
2323

2424

atomate/common/firetasks/tests/test_parse_outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
__author__ = "Shyam Dwaraknath <[email protected]>"
1212

13-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
13+
module_dir = os.path.dirname(os.path.abspath(__file__))
1414
db_dir = os.path.join(module_dir, "..", "..", "test_files")
1515

1616

atomate/feff/firetasks/tests/test_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
__author__ = "Kiran Mathew"
1414
__email__ = "[email protected]"
1515

16-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
16+
module_dir = os.path.dirname(os.path.abspath(__file__))
1717
db_dir = os.path.join(module_dir, "..", "..", "..", "common", "test_files")
1818

1919

atomate/feff/fireworks/tests/test_fireworks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
__author__ = "Kiran Mathew"
1010
__email__ = "[email protected]"
1111

12-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
12+
module_dir = os.path.dirname(os.path.abspath(__file__))
1313
db_dir = os.path.join(module_dir, "..", "..", "..", "common", "test_files")
1414

1515

atomate/feff/workflows/tests/test_eels_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
__author__ = "Kiran Mathew"
1313
__email__ = "[email protected]"
1414

15-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
15+
module_dir = os.path.dirname(os.path.abspath(__file__))
1616
db_dir = os.path.join(module_dir, "..", "..", "..", "common", "test_files")
1717
DEBUG_MODE = (
1818
False # If true, retains the database and output dirs at the end of the test

atomate/feff/workflows/tests/test_exafs_scattering_paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
__author__ = "Kiran Mathew"
99
__email__ = "[email protected]"
1010

11-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
11+
module_dir = os.path.dirname(os.path.abspath(__file__))
1212
db_dir = os.path.join(module_dir, "..", "..", "..", "common", "test_files")
1313

1414

atomate/feff/workflows/tests/test_xas_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
__author__ = "Kiran Mathew"
1414
__email__ = "[email protected]"
1515

16-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
16+
module_dir = os.path.dirname(os.path.abspath(__file__))
1717
db_dir = os.path.join(module_dir, "..", "..", "..", "common", "test_files")
1818

1919
DEBUG_MODE = (

atomate/lammps/tests/test_drone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
__author__ = "Kiran Mathew"
1212
__email__ = "[email protected]"
1313

14-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
14+
module_dir = os.path.dirname(os.path.abspath(__file__))
1515
db_dir = os.path.join(module_dir, "..", "..", "common", "test_files")
1616

1717
LAMMPS_CMD = None # "lmp_serial"

atomate/lammps/tests/test_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
__author__ = "Kiran Mathew, Brandon Wood"
1313
1414

15-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
15+
module_dir = os.path.dirname(os.path.abspath(__file__))
1616
db_dir = os.path.join(module_dir, "..", "..", "common", "test_files")
1717

1818
LAMMPS_CMD = None # "mpirun -n 4 lmp_mpi"

atomate/qchem/firetasks/tests/test_critic2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
__author__ = "Samuel Blau"
1313
__email__ = "[email protected]"
1414

15-
module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
15+
module_dir = os.path.dirname(os.path.abspath(__file__))
1616

1717

1818
@unittest.skipIf(not which("critic2"), "critic2 executable not present")

0 commit comments

Comments
 (0)