Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Fixed stubs folder path
Browse files Browse the repository at this point in the history
  • Loading branch information
erayaydin committed Jun 21, 2017
1 parent 3b0087c commit aed6db7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/xgraphic
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python

from os import *
import sys
import getopt
import xgraphic
Expand All @@ -21,7 +22,7 @@ def main(argv):
elif opt in ("-s", "--switch"):
switch = arg

if os.geteuid() != 0:
if geteuid() != 0:
print('You should be root for switching graphic card.')
sys.exit(2)

Expand Down

0 comments on commit aed6db7

Please sign in to comment.