mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
import stack.
This commit is contained in:
parent
9252b4771b
commit
88634d2a8b
6 changed files with 7 additions and 5 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
from pysollib.gamedb import registerGame, GameInfo, GI
|
||||
from pysollib.util import *
|
||||
from stack import *
|
||||
from pysollib.stack import *
|
||||
from game import Game
|
||||
from layout import Layout
|
||||
from hint import AbstractHint, DefaultHint, CautiousDefaultHint, Yukon_Hint
|
||||
|
|
|
@ -254,7 +254,7 @@ class Game:
|
|||
'%s: %s %s' % (class_name, ncards, self.gameinfo.ncards),
|
||||
2)
|
||||
if self.s.rows:
|
||||
from stack import AC_RowStack, UD_AC_RowStack, \
|
||||
from pysollib.stack import AC_RowStack, UD_AC_RowStack, \
|
||||
SS_RowStack, UD_SS_RowStack, \
|
||||
RK_RowStack, UD_RK_RowStack, \
|
||||
Spider_AC_RowStack, Spider_SS_RowStack
|
||||
|
@ -3304,7 +3304,7 @@ in the current implementation.''') % version)
|
|||
|
||||
def showStackDesc(self):
|
||||
from pysoltk import StackDesc
|
||||
from stack import InitialDealTalonStack
|
||||
from pysollib.stack import InitialDealTalonStack
|
||||
sd_list = []
|
||||
for s in self.allstacks:
|
||||
sd = (s.__class__.__name__, s.cap.base_rank, s.cap.dir)
|
||||
|
|
|
@ -95,6 +95,7 @@ __all__ = ['cardsFaceUp',
|
|||
# imports
|
||||
import types
|
||||
|
||||
from pysollib.mygettext import _, n_
|
||||
# PySol imports
|
||||
from pysollib.mfxutil import Struct, kwdefault, SubclassResponsibility
|
||||
from pysollib.mfxutil import Image, ImageTk, USE_PIL
|
||||
|
|
|
@ -41,6 +41,7 @@ __all__ = ['EVENT_HANDLED',
|
|||
# imports
|
||||
import Tkinter
|
||||
|
||||
from pysollib.mygettext import _, n_
|
||||
|
||||
# ************************************************************************
|
||||
# * constants
|
||||
|
|
|
@ -25,7 +25,7 @@ import os
|
|||
|
||||
from pysollib.gamedb import GI, loadGame
|
||||
from pysollib.util import *
|
||||
from stack import *
|
||||
from pysollib.stack import *
|
||||
from layout import Layout
|
||||
from wizardpresets import presets
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
import os.path
|
||||
for module_name in ['pysollib.acard', 'pysollib.mfxutil', 'pysollib.move', 'pysollib.resource', 'pysollib.settings', 'pysollib.mygettext', 'pysollib.wizardpresets', 'pysollib.util', 'pysollib.gamedb', ]:
|
||||
for module_name in ['pysollib.acard', 'pysollib.mfxutil', 'pysollib.move', 'pysollib.resource', 'pysollib.settings', 'pysollib.stack', 'pysollib.mygettext', 'pysollib.wizardpresets', 'pysollib.util', 'pysollib.gamedb', ]:
|
||||
open(os.path.join(".", "tests", "individually-importing", "import_" + module_name + ".py"), 'w').write('''#!/usr/bin/env python
|
||||
import sys
|
||||
sys.path.append("./tests/lib")
|
||||
|
|
Loading…
Add table
Reference in a new issue