Skip to content

Commit

Permalink
Update vm-NAP_processing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lfnothias authored Jan 4, 2024
1 parent 5222ddb commit 20f1a0a
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions src/vm-NAP_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,14 @@
import logging
import io
import os

# Check if running in GitHub Actions
if 'GITHUB_WORKSPACE' in os.environ:
# GitHub Actions environment
github_workspace = os.environ['GITHUB_WORKSPACE']
gnps_lib_path = os.path.join(github_workspace, 'gnps_postprocessing', 'lib')
src_path = os.path.join(github_workspace, 'src')
else:
# Local environment
script_dir = os.path.dirname(os.path.abspath(__file__))
gnps_lib_path = os.path.join(script_dir, 'gnps_postprocessing', 'lib')
src_path = os.path.join(script_dir, 'src')

# Add custom module paths to sys.path
sys.path.append(gnps_lib_path)
sys.path.append(src_path)
from datetime import datetime

# Now you can import your custom modules
from gnps_download_results import *
from consolidate_structures import *
from gnps_results_postprocess import *
from prepare_virtual_metabolization import *
from run_virtual_metabolization import *
from datetime import datetime
from gnps_postprocessing.lib.gnps_download_results import *
from gnps_postprocessing.lib.consolidate_structures import *
from gnps_postprocessing.lib.gnps_results_postprocess import *
from src.prepare_virtual_metabolization import *
from src.run_virtual_metabolization import *

class StreamToLogger:
"""
Expand Down

0 comments on commit 20f1a0a

Please sign in to comment.