We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a09e97 commit e48a69cCopy full SHA for e48a69c
1 file changed
replan_central/run_get_iFOT_events_pl.py
@@ -1,7 +1,8 @@
1
import os
2
import subprocess
3
+import importlib.resources
4
5
6
def main():
- perl_script = os.path.join(os.path.dirname(__file__), "../perl/get_iFOT_events.pl")
7
- subprocess.run(["perl", perl_script], check=True)
+ perl_script = importlib.resources.files("replan_central.perl") / "get_iFOT_events.pl"
8
+ subprocess.run(["perl", str(perl_script)], check=True)
0 commit comments