Permalink
Browse files

Load up Gist to sys.path in the first place

  • Loading branch information...
condemil committed Jul 31, 2017
1 parent 1822b20 commit 2eabc3f3cf853014a9b3f3ee17fca8f0e76bdc89
Showing with 6 additions and 10 deletions.
  1. +1 −1 .travis.yml
  2. +4 −0 gist_05_import.py
  3. +1 −2 gist_40_request.py
  4. +0 −3 gist_80.py
  5. +0 −4 gitio.py
View
@@ -7,7 +7,7 @@ install:
- pip install pylint coverage coveralls
script:
- - pylint gist_20_exceptions gist_40_request gist_60_helpers gist_80 gitio
+ - pylint gist_05_import gist_20_exceptions gist_40_request gist_60_helpers gist_80 gitio
#- coverage run -m unittest -v
- nosetests -v --with-coverage
View
@@ -0,0 +1,4 @@
+import sys
+from os import path
+
+sys.path.append(path.dirname(path.realpath(__file__)))
View
@@ -1,13 +1,12 @@
import contextlib
import json
+import urllib.request as urllib
try:
import sublime
except ImportError:
from test.stubs import sublime
-import urllib.request as urllib
-
from gist_20_exceptions import MissingCredentialsException, SimpleHTTPError
View
@@ -2,7 +2,6 @@
import json
import os
import shutil
-import sys
import tempfile
import threading
import traceback
@@ -15,8 +14,6 @@
from test.stubs import sublime
from test.stubs import sublime_plugin
-sys.path.append(os.path.dirname(os.path.realpath(__file__)))
-
from gist_20_exceptions import MissingCredentialsException
from gist_60_helpers import (
gistify_view,
View
@@ -1,5 +1,3 @@
-import sys
-from os import path
from urllib.error import URLError, HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen
@@ -11,8 +9,6 @@
from test.stubs import sublime
from test.stubs import sublime_plugin
-sys.path.append(path.dirname(path.realpath(__file__)))
-
gitio_url = 'https://git.io/create'
caption = 'GitHub URL:'

0 comments on commit 2eabc3f

Please sign in to comment.