We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c9ce4f commit f3fbc2dCopy full SHA for f3fbc2d
cycode/cli/config.py
@@ -3,7 +3,14 @@
3
from cycode.cli.user_settings.configuration_manager import ConfigurationManager
4
from cycode.cli.utils.yaml_utils import read_file
5
6
-relative_path = os.path.dirname(__file__)
+__is_nuitka = '__compiled__' in globals()
7
+
8
+if __is_nuitka:
9
+ import sys
10
+ relative_path = os.path.dirname(sys.argv[0])
11
+else:
12
+ relative_path = os.path.dirname(__file__)
13
14
config_file_path = os.path.join(relative_path, 'config.yaml')
15
config = read_file(config_file_path)
16
configuration_manager = ConfigurationManager()
0 commit comments