1 Star 0 Fork 7

Admin/z0scan

forked from JiuZero/z0scan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
__init__.py 515 Bytes
一键复制 编辑 原始数据 按行查看 历史
JiuZero 提交于 2025-04-19 15:13 +08:00 . v2025.4.19
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : __init__.py
import sys
import os
import inspect
sys.dont_write_bytecode = True
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
def modulePath():
"""
This will get us the program's directory, even if we are frozen
using py2exe
"""
try:
_ = sys.executable if hasattr(sys, "frozen") else __file__
except NameError:
_ = inspect.getsourcefile(modulePath)
return os.path.dirname(os.path.realpath(_))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Biz-Spring_0/z0scan.git
git@gitee.com:Biz-Spring_0/z0scan.git
Biz-Spring_0
z0scan
z0scan
master

搜索帮助