Skip to content

File "/home/runner/work/OK/OK/xray/xrayping.py", line 13, in <module> #138936

Answered by barishaxxer
vpnineh asked this question in Actions
Discussion options

You must be logged in to vote

This is likely due to an issue with the Python path or how the modules are being imported. first fix your imports as

import sys
import os

sys.path.append(os.path.dirname(os.path.abspath(__file__)))

from modules.xray_url_decoder.XrayUrlDecoder import XrayUrlDecoder
from modules.XrayPing import XrayPing
from modules.clash_meta_url_decoder.ClashMetaUrlDecoder import ClashMetaDecoder
from modules.gitRepo import commitPushRActiveProxiesFile, getLatestActiveConfigs

your directory structure looks like this i suppose
WOW/
├── xray/
│ ├── xrayping.py
│ ├── modules/
│ │ ├── init.py
│ │ ├── gitRepo.py
│ │ ├── XrayPing.py
│ │ ├── xray_url_decoder/
│ │ │ ├── init.py
│ │ │ ├── XrayUrlDecoder.py
│ │ │…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vpnineh
Comment options

@vpnineh
Comment options

@barishaxxer
Comment options

Answer selected by vpnineh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
2 participants