GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 88d6e1...a028f7 )
by thatsIch
01:14
created

RainmeterOpenSkinAsProjectCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A on_skin_selected() 0 11 1
A run() 0 5 1
1
import os
2
import subprocess
3
4
import sublime
5
import sublime_plugin
6
7
from .path.skin_path_provider import get_cached_skin_path
8
9
10
class RainmeterOpenSkinAsProjectCommand(sublime_plugin.ApplicationCommand):
11
12
    def run(self):
13
        skins_path = get_cached_skin_path()
14
        skins = os.listdir(skins_path)
15
16
        sublime.active_window().show_quick_panel(skins, self.on_skin_selected, 0, 0, None)
17
18
    def on_skin_selected(self, selected_skin_id):
19
        skins_path = get_cached_skin_path()
20
        skins = os.listdir(skins_path)
21
        selected_skin = skins[selected_skin_id]
22
        selected_skin_path = os.path.join(skins_path, selected_skin)
23
24
        # to open a folder in new window, just create a new process with the folder as argument
25
        st_path = sublime.executable_path()
26
        subprocess.Popen([
27
            st_path,
28
            selected_skin_path
29
        ])
30